public class WhoAmIResponseDecorator extends ExtendedResponseDecorator<WhoAmIResponse> implements WhoAmIResponse
EXTENSION_OID
TYPE
Constructor and Description |
---|
WhoAmIResponseDecorator(LdapApiService codec,
WhoAmIResponse decoratedMessage)
Creates a new instance of WhoAmIResponseDecorator.
|
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()
Gets the Extended response payload
|
String |
getUserId()
Get the UserId
|
boolean |
isDnAuthzId() |
boolean |
isUserAuthzId() |
void |
setAuthzId(byte[] authzId)
set the authzid
|
void |
setResponseValue(byte[] responseValue)
sets the Extended response payload
|
computeLength, encode, setResponseName
getLdapResult, setLdapResult
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
equals, 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)
codec
- The LDAP service instancedecoratedMessage
- The decorated messagepublic void setResponseValue(byte[] responseValue)
setResponseValue
in class ExtendedResponseDecorator<WhoAmIResponse>
responseValue
- The extended payloadpublic byte[] getResponseValue()
getResponseValue
in class ExtendedResponseDecorator<WhoAmIResponse>
public byte[] getAuthzId()
getAuthzId
in interface WhoAmIResponse
public void setAuthzId(byte[] authzId)
setAuthzId
in interface WhoAmIResponse
authzId
- The authzId to setpublic 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–2018 The Apache Software Foundation. All rights reserved.