public class WhoAmIResponseImpl extends ExtendedResponseImpl implements WhoAmIResponse
authzid OCTET STRING OPTIONAL
EXTENSION_OID
TYPE
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
|
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)
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 toString()
ExtendedResponseImpl
toString
in class ExtendedResponseImpl
Object.toString()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.