Interface WhoAmIResponse

All Superinterfaces:
org.apache.directory.api.ldap.model.message.ExtendedResponse, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Response, org.apache.directory.api.ldap.model.message.ResultResponse
All Known Implementing Classes:
WhoAmIResponseImpl

public interface WhoAmIResponse extends org.apache.directory.api.ldap.model.message.ExtendedResponse
The RFC 4532 WhoAmI response :
authzid ::= OCTET STRING OPTIONAL
Author:
Apache Directory Project
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The OID for the WhoAmI extended operation response.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the authzid as a byte[]
    Get the authzid as String.
    org.apache.directory.api.ldap.model.name.Dn
    Get the DN authzid.
    Get the UserId
    boolean
    Tells if the response contains a DN authz (dn:XXX)
    boolean
    Tells if the response contains a userID authz (u:XXX)

    Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse

    getResponseName, setResponseName

    Methods inherited from interface org.apache.directory.api.ldap.model.message.Message

    addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId

    Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse

    getLdapResult
  • Field Details

    • EXTENSION_OID

      static final String EXTENSION_OID
      The OID for the WhoAmI extended operation response.
      See Also:
  • Method Details

    • isDnAuthzId

      boolean isDnAuthzId()
      Tells if the response contains a DN authz (dn:XXX)
      Returns:
      true if the response contains a DN authz (dn:XXX)
    • isUserAuthzId

      boolean isUserAuthzId()
      Tells if the response contains a userID authz (u:XXX)
      Returns:
      true if the response contains a userID authz (u:XXX)
    • getAuthzId

      byte[] getAuthzId()
      Get the authzid as a byte[]
      Returns:
      The authzid or null
    • getAuthzIdString

      String getAuthzIdString()
      Get the authzid as String. We will strip out the 'dn:' or 'u:' part.
      Returns:
      The authzid or null
    • getUserId

      String getUserId()
      Get the UserId
      Returns:
      The userId or null
    • getDn

      org.apache.directory.api.ldap.model.name.Dn getDn()
      Get the DN authzid.
      Returns:
      The DN or null