public class WhoAmIResponseImpl extends AbstractExtendedResponse implements WhoAmIResponse
authzid OCTET STRING OPTIONAL
EXTENSION_OID
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,
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.
|
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(Dn dn)
Set the DN
|
void |
setUserId(String userId)
Set the userId
|
String |
toString()
Get a String representation of an ExtendedResponse
|
equals, getResponseName, hashCode, setResponseName
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
getResponseName, setResponseName
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public WhoAmIResponseImpl(int messageId, ResultCodeEnum rcode, 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 WhoAmIResponse
public void setAuthzId(byte[] authzId)
authzId
- the value to storepublic 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 toString()
AbstractExtendedResponse
toString
in class AbstractExtendedResponse
Object.toString()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.