public final class AuthUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<ClientInfo> |
getClientInfos(List<Id> authInfo)
Gets user from id to prepare ClientInfo.
|
static String |
getUser(Id id)
Gives user name
|
static String |
getUsers(List<Id> authInfo)
Returns a formatted, comma-separated list of the user IDs held
in
authInfo, or null if no user IDs were found. |
public static String getUser(Id id)
id - contains scheme and authentication infopublic static String getUsers(List<Id> authInfo)
authInfo, or null if no user IDs were found.
Note that while the result may be easy on the eyes, it is
underspecified: it does not mention the corresponding scheme, nor are its components escaped. It is intended for
for logging, and is not a security feature.authInfo - A list of Id objects, or null.null if
no user IDs were found.public static List<ClientInfo> getClientInfos(List<Id> authInfo)
authInfo - List of id objects. id contains scheme and authentication infoCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.