public class WhoAmIResponseDecorator extends ExtendedResponseDecorator<WhoAmIResponse> implements WhoAmIResponse
responseValue
messageLength
EXTENSION_OID
TYPE
Constructor and Description |
---|
WhoAmIResponseDecorator(LdapApiService codec,
WhoAmIResponse decoratedMessage) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAuthzId()
Get the authzid as a byte[]
|
String |
getAuthzIdString()
Get the authzid as String.
|
Dn |
getDn()
Get the DN authzid.
|
String |
getResponseName()
Overload the parent's getResponseName method, as the WhoAmI response should not
contain the responseName.
|
byte[] |
getResponseValue() |
String |
getUserId()
Get the UserId
|
boolean |
isDnAuthzId() |
boolean |
isUserAuthzId() |
void |
setAuthzId(byte[] authzId)
set the authzid
|
void |
setResponseValue(byte[] responseValue) |
computeLength, encode, getExtendedResponseLength, getResponseNameBytes, setExtendedResponseLength, setResponseName, setResponseNameBytes
getLdapResult, setLdapResult
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setResponseName
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
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 WhoAmIResponse
public void setAuthzId(byte[] authzId)
setAuthzId
in interface WhoAmIResponse
public boolean isDnAuthzId()
isDnAuthzId
in interface WhoAmIResponse
public boolean isUserAuthzId()
isUserAuthzId
in interface WhoAmIResponse
public String getAuthzIdString()
getAuthzIdString
in interface WhoAmIResponse
public String getUserId()
getUserId
in interface WhoAmIResponse
public Dn getDn()
getDn
in interface WhoAmIResponse
public String getResponseName()
getResponseName
in interface ExtendedResponse
getResponseName
in class ExtendedResponseDecorator<WhoAmIResponse>
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.