public class WhoAmIResponseImpl extends org.apache.directory.api.ldap.model.message.AbstractExtendedResponse implements WhoAmIResponse
authzid OCTET STRING OPTIONAL
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
authzId
The authzid
|
private org.apache.directory.api.ldap.model.name.Dn |
dn
The authzId when it's a DN
|
private String |
userId
The authzId when it's a userId
|
responseNameldapResultEXTENSION_OID| Constructor and Description |
|---|
WhoAmIResponseImpl()
Instantiates a new WhoAmI response.
|
WhoAmIResponseImpl(int messageId)
Instantiates a new WhoAmI response.
|
WhoAmIResponseImpl(int messageId,
org.apache.directory.api.ldap.model.message.ResultCodeEnum rcode)
Create a new instance for the WhoAmI response
|
WhoAmIResponseImpl(int messageId,
org.apache.directory.api.ldap.model.message.ResultCodeEnum rcode,
String diagnosticMessage)
Create a new instance for the WhoAmI response
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAuthzId()
Get the authzid as a byte[]
|
String |
getAuthzIdString()
Get the authzid as String.
|
org.apache.directory.api.ldap.model.name.Dn |
getDn()
Get the DN authzid.
|
String |
getUserId()
Get the UserId
|
boolean |
isDnAuthzId() |
boolean |
isUserAuthzId() |
void |
setAuthzId(byte[] authzId)
Set the authzId value
|
void |
setDn(org.apache.directory.api.ldap.model.name.Dn dn)
Set the DN
|
void |
setUserId(String userId)
Set the userId
|
String |
toString() |
equals, getResponseName, hashCode, setResponseNamegetLdapResultaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetResponseName, setResponseNameprivate byte[] authzId
private org.apache.directory.api.ldap.model.name.Dn dn
private String userId
public WhoAmIResponseImpl(int messageId,
org.apache.directory.api.ldap.model.message.ResultCodeEnum rcode,
String diagnosticMessage)
messageId - The Message IDrcode - The result codediagnosticMessage - The diagnostic messagepublic WhoAmIResponseImpl(int messageId,
org.apache.directory.api.ldap.model.message.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)
authzId - the value to storepublic boolean isDnAuthzId()
isDnAuthzId in interface WhoAmIResponsepublic boolean isUserAuthzId()
isUserAuthzId in interface WhoAmIResponsepublic String getAuthzIdString()
getAuthzIdString in interface WhoAmIResponsepublic String getUserId()
getUserId in interface WhoAmIResponsepublic void setUserId(String userId)
userId - The User IDpublic org.apache.directory.api.ldap.model.name.Dn getDn()
getDn in interface WhoAmIResponsepublic void setDn(org.apache.directory.api.ldap.model.name.Dn dn)
dn - The DN to setpublic String toString()
toString in class org.apache.directory.api.ldap.model.message.AbstractExtendedResponseObject.toString()Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.