Package com.nimbusds.common.id
Class AuthzIdResolver
java.lang.Object
com.nimbusds.common.id.AuthzIdResolver
Resolves the authorisation identity (authzId) associated with a bind (auth)
request.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
resolve
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
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.
-
resolve
Resolves the authzId (user) of a bind request.- Parameters:
bindRequest
- The bind request, must not benull
.- Returns:
- The authzId,
null
if it couldn't be resolved or the bind request type is not supported.
-