public class WhoAmIResponseImpl extends ExtendedResponseImpl implements WhoAmIResponse
authzid OCTET STRING OPTIONAL
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
authzId
The authzid
|
private Dn |
dn
The authzId when it's a DN
|
private java.lang.String |
userId
The authzId when it's a userId
|
responseNameldapResultcontrolsEXTENSION_OIDTYPE| Constructor and Description |
|---|
WhoAmIResponseImpl()
Instantiates a new WhoAmI response.
|
WhoAmIResponseImpl(int messageId)
Instantiates a new WhoAmI response.
|
WhoAmIResponseImpl(int messageId,
ResultCodeEnum rcode)
Create a new instance for the WhoAmI response
|
WhoAmIResponseImpl(int messageId,
ResultCodeEnum rcode,
java.lang.String diagnosticMessage)
Create a new instance for the WhoAmI response
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAuthzId()
Get the authzid as a byte[]
|
java.lang.String |
getAuthzIdString()
Get the authzid as String.
|
Dn |
getDn()
Get the DN authzid.
|
java.lang.String |
getUserId()
Get the UserId
|
boolean |
isDnAuthzId() |
boolean |
isUserAuthzId() |
void |
setAuthzId(byte[] authzId)
set the authzid
|
void |
setDn(Dn dn)
Set the DN
|
void |
setUserId(java.lang.String userId)
Set the userId
|
java.lang.String |
toString()
Get a String representation of an ExtendedResponse
|
equals, getResponseName, hashCode, setResponseNamegetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetResponseName, setResponseNamegetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdprivate byte[] authzId
private Dn dn
private java.lang.String userId
public WhoAmIResponseImpl(int messageId,
ResultCodeEnum rcode,
java.lang.String diagnosticMessage)
messageId - The Message IDrcode - The result codediagnosticMessage - The diagnostic messagepublic WhoAmIResponseImpl(int messageId,
ResultCodeEnum rcode)
messageId - The Message IDrcode - The result codepublic WhoAmIResponseImpl(int messageId)
messageId - the message idpublic WhoAmIResponseImpl()
public byte[] getAuthzId()
getAuthzId in interface WhoAmIResponsepublic void setAuthzId(byte[] authzId)
setAuthzId in interface WhoAmIResponsepublic boolean isDnAuthzId()
isDnAuthzId in interface WhoAmIResponsepublic boolean isUserAuthzId()
isUserAuthzId in interface WhoAmIResponsepublic java.lang.String getAuthzIdString()
getAuthzIdString in interface WhoAmIResponsepublic java.lang.String getUserId()
getUserId in interface WhoAmIResponsepublic void setUserId(java.lang.String userId)
public Dn getDn()
getDn in interface WhoAmIResponsepublic void setDn(Dn dn)
public java.lang.String toString()
ExtendedResponseImpltoString in class ExtendedResponseImplObject.toString()