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
FieldsModifier and TypeFieldDescriptionstatic final StringThe OID for the WhoAmI extended operation response. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the authzid as a byte[]Get the authzid as String.org.apache.directory.api.ldap.model.name.DngetDn()Get the DN authzid.Get the UserIdbooleanTells if the response contains a DN authz (dn:XXX)booleanTells if the response contains a userID authz (u:XXX)Methods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedResponse
getResponseName, setResponseNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdMethods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
Field Details
-
EXTENSION_OID
-
-
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:
trueif 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
-
getDn
org.apache.directory.api.ldap.model.name.Dn getDn()Get the DN authzid.- Returns:
- The DN or null
-