public class WhoAmIResponseDecorator extends ExtendedResponseDecorator<WhoAmIResponse> implements WhoAmIResponse
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private WhoAmIResponse |
whoAmIResponse |
responseValuemessageLengthEXTENSION_OIDTYPE| Constructor and Description |
|---|
WhoAmIResponseDecorator(LdapApiService codec,
WhoAmIResponse decoratedMessage) |
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computeLengthInternal()
Compute the WhoAmIResponse extended operation length
|
(package private) java.nio.ByteBuffer |
encodeInternal()
Encodes the WhoAmIResponse extended operation.
|
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 |
getResponseName()
Overload the parent's getResponseName method, as the WhoAmI response should not
contain the responseName.
|
byte[] |
getResponseValue() |
java.lang.String |
getUserId()
Get the UserId
|
boolean |
isDnAuthzId() |
boolean |
isUserAuthzId() |
void |
setAuthzId(byte[] authzId)
set the authzid
|
(package private) void |
setDn(Dn dn)
Set the DnId
|
void |
setResponseValue(byte[] responseValue) |
(package private) void |
setUserId(java.lang.String userId)
Set the userId
|
computeLength, encode, setResponseNamegetLdapResult, setLdapResultaddAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetResponseNamegetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdprivate static final org.slf4j.Logger LOG
private WhoAmIResponse whoAmIResponse
public WhoAmIResponseDecorator(LdapApiService codec, WhoAmIResponse decoratedMessage)
public void setResponseValue(byte[] responseValue)
setResponseValue in class ExtendedResponseDecorator<WhoAmIResponse>public byte[] getResponseValue()
getResponseValue in class ExtendedResponseDecorator<WhoAmIResponse>public byte[] getAuthzId()
getAuthzId in interface WhoAmIResponsepublic void setAuthzId(byte[] authzId)
setAuthzId in interface WhoAmIResponsevoid setUserId(java.lang.String userId)
void setDn(Dn dn)
public 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 Dn getDn()
getDn in interface WhoAmIResponsepublic java.lang.String getResponseName()
getResponseName in interface ExtendedResponsegetResponseName in class ExtendedResponseDecorator<WhoAmIResponse>int computeLengthInternal()
0x04 L1 authzId
java.nio.ByteBuffer encodeInternal()
throws EncoderException
EncoderException - If anything goes wrong.