Package org.ldaptive.control
Class AuthorizationIdentityResponseControl
java.lang.Object
org.ldaptive.control.AbstractControl
org.ldaptive.control.AuthorizationIdentityResponseControl
- All Implemented Interfaces:
Control
,ResponseControl
public class AuthorizationIdentityResponseControl
extends AbstractControl
implements ResponseControl
Response control for authorization identity. See RFC 3829. Control value contains the authorizationId.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Authorization identity.private static final int
hash code seed.static final String
OID of this control.Fields inherited from class org.ldaptive.control.AbstractControl
logger
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AuthorizationIdentityResponseControl
(boolean critical) Creates a new authorization identity response control.Creates a new authorization identity response control.AuthorizationIdentityResponseControl
(String id, boolean critical) Creates a new authorization identity response control. -
Method Summary
Methods inherited from class org.ldaptive.control.AbstractControl
getCriticality, getOID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ldaptive.control.Control
getCriticality, getOID
-
Field Details
-
OID
OID of this control.- See Also:
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
authorizationId
Authorization identity.
-
-
Constructor Details
-
AuthorizationIdentityResponseControl
public AuthorizationIdentityResponseControl()Default constructor. -
AuthorizationIdentityResponseControl
public AuthorizationIdentityResponseControl(boolean critical) Creates a new authorization identity response control.- Parameters:
critical
- whether this control is critical
-
AuthorizationIdentityResponseControl
Creates a new authorization identity response control.- Parameters:
id
- authorization id
-
AuthorizationIdentityResponseControl
Creates a new authorization identity response control.- Parameters:
id
- authorization idcritical
- whether this control is critical
-
-
Method Details
-
getAuthorizationId
Returns the authorization id.- Returns:
- authorization id
-
setAuthorizationId
Sets the authorization identity.- Parameters:
id
- authorization id
-
equals
- Overrides:
equals
in classAbstractControl
-
hashCode
public int hashCode()Description copied from class:AbstractControl
Returns the hash code for this object.- Specified by:
hashCode
in classAbstractControl
- Returns:
- hash code
-
toString
- Overrides:
toString
in classAbstractControl
-
decode
Description copied from interface:ResponseControl
Initializes this response control with the supplied BER encoded data.- Specified by:
decode
in interfaceResponseControl
- Parameters:
encoded
- BER encoded response control
-