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

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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 be null.
      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 be null.
      Returns:
      The authzId, null if it couldn't be resolved.
    • resolve

      public static AuthzId resolve(com.unboundid.ldap.sdk.BindRequest bindRequest)
      Resolves the authzId (user) of a bind request.
      Parameters:
      bindRequest - The bind request, must not be null.
      Returns:
      The authzId, null if it couldn't be resolved or the bind request type is not supported.