Project Aristotle - ArisID Attribute Services

org.openliberty.arisid.protocol.ldap
Class ProxyAuthControl

java.lang.Object
  extended by org.openliberty.arisid.protocol.ldap.ProxyAuthControl
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.Control

public class ProxyAuthControl
extends java.lang.Object
implements javax.naming.ldap.Control

Implementation of RFC 4370 Proxy Auth Control. Used by Attribute Service providers to encode a principal as an LDAP Proxy auth control.

See Also:
Serialized Form

Field Summary
static java.lang.String OID_PROXY_AUTH_CONTROL
           
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
ProxyAuthControl(byte[] encodedValue)
           
ProxyAuthControl(IPrincipalIdentifier authZPrincipal)
           
ProxyAuthControl(java.lang.String authZidentifier)
           
 
Method Summary
 void forceNonCritical()
          ProxyAuthControl is intended to be critical according to RFC.
 java.lang.String getAuthZIdentifier()
           
 byte[] getEncodedValue()
           
 java.lang.String getID()
           
 boolean isCritical()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OID_PROXY_AUTH_CONTROL

public static java.lang.String OID_PROXY_AUTH_CONTROL
Constructor Detail

ProxyAuthControl

public ProxyAuthControl(java.lang.String authZidentifier)
                 throws IGFException
Throws:
IGFException

ProxyAuthControl

public ProxyAuthControl(IPrincipalIdentifier authZPrincipal)
                 throws IGFException
Throws:
IGFException

ProxyAuthControl

public ProxyAuthControl(byte[] encodedValue)
                 throws DecodeException
Throws:
DecodeException
Method Detail

getEncodedValue

public byte[] getEncodedValue()
Specified by:
getEncodedValue in interface javax.naming.ldap.Control

getID

public java.lang.String getID()
Specified by:
getID in interface javax.naming.ldap.Control

getAuthZIdentifier

public java.lang.String getAuthZIdentifier()

isCritical

public boolean isCritical()
Specified by:
isCritical in interface javax.naming.ldap.Control

forceNonCritical

public void forceNonCritical()
ProxyAuthControl is intended to be critical according to RFC. However criticality can be turned off for testing purposes using this method.


OpenLiberty.org - Licensed under Apache APL 2.0