Package com.nimbusds.common.id
Class AuthzIdResolver
- java.lang.Object
-
- com.nimbusds.common.id.AuthzIdResolver
-
public class AuthzIdResolver extends Object
Resolves the authorisation identity (authzId) associated with a bind (auth) request.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthzId
resolve(com.unboundid.ldap.sdk.BindRequest bindRequest)
Resolves the authzId (user) of a bind request.static AuthzId
resolve(com.unboundid.ldap.sdk.PLAINBindRequest bindRequest)
Resolves the authzId (user) of a plain SASL bind request.static AuthzId
resolve(com.unboundid.ldap.sdk.SimpleBindRequest bindRequest)
Resolves the authzId (user) of a simple bind request.
-
-
-
Method Detail
-
resolve
public static AuthzId resolve(com.unboundid.ldap.sdk.SimpleBindRequest bindRequest)
Resolves the authzId (user) of a simple bind request.- Parameters:
bindRequest
- The bind request, must not benull
.- Returns:
- The authzId,
null
if it couldn't be resolved.
-
resolve
public static AuthzId resolve(com.unboundid.ldap.sdk.PLAINBindRequest bindRequest)
Resolves the authzId (user) of a plain SASL bind request. If a target user is specified, the authorisation identity is returned, else the authentication identity.- Parameters:
bindRequest
- The bind request, must not benull
.- Returns:
- The authzId,
null
if it couldn't be resolved.
-
-