org.ldaptive.control
Class ProxyAuthorizationControl

java.lang.Object
  extended by org.ldaptive.control.AbstractControl
      extended by org.ldaptive.control.ProxyAuthorizationControl
All Implemented Interfaces:
Control, RequestControl

public class ProxyAuthorizationControl
extends AbstractControl
implements RequestControl

Request control for proxy authorization. See RFC 4370. Control is defined as:

   controlValue ::= OCTET STRING  -- authorizationId
 

Version:
$Revision: 3189 $ $Date: 2016-11-01 17:21:43 -0400 (Tue, 01 Nov 2016) $
Author:
Middleware Services

Field Summary
static String OID
          OID of this control.
 
Fields inherited from class org.ldaptive.control.AbstractControl
logger
 
Constructor Summary
ProxyAuthorizationControl()
          Default constructor.
ProxyAuthorizationControl(String id)
          Creates a new proxy authorization control.
 
Method Summary
 byte[] encode()
          Provides the BER encoding of this control.
 boolean equals(Object o)
          
 String getAuthorizationId()
          Returns the authorization identity.
 int hashCode()
          Returns the hash code for this object.
 void setAuthorizationId(String id)
          Sets the authorization identity.
 String toString()
          
 
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 Detail

OID

public static final String OID
OID of this control.

See Also:
Constant Field Values
Constructor Detail

ProxyAuthorizationControl

public ProxyAuthorizationControl()
Default constructor.


ProxyAuthorizationControl

public ProxyAuthorizationControl(String id)
Creates a new proxy authorization control.

Parameters:
id - authorization identity
Method Detail

getAuthorizationId

public String getAuthorizationId()
Returns the authorization identity.

Returns:
authorization identity

setAuthorizationId

public void setAuthorizationId(String id)
Sets the authorization identity.

Parameters:
id - authorization identity

equals

public boolean equals(Object o)

Overrides:
equals in class AbstractControl

hashCode

public int hashCode()
Description copied from class: AbstractControl
Returns the hash code for this object.

Specified by:
hashCode in class AbstractControl
Returns:
hash code

toString

public String toString()

Overrides:
toString in class Object

encode

public byte[] encode()
Provides the BER encoding of this control.

Specified by:
encode in interface RequestControl
Returns:
BER encoded request control


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.