org.springframework.security.ldap.ppolicy
Class PasswordPolicyControl

java.lang.Object
  extended by org.springframework.security.ldap.ppolicy.PasswordPolicyControl
All Implemented Interfaces:
Serializable, Control
Direct Known Subclasses:
PasswordPolicyResponseControl

public class PasswordPolicyControl
extends Object
implements Control

A Password Policy request control.

Based on the information in the corresponding internet draft on LDAP password policy.

Version:
$Id$
Author:
Stefan Zoerner, Luke Taylor
See Also:
PasswordPolicyResponseControl, Password Policy for LDAP Directories, Serialized Form

Field Summary
static String OID
          OID of the Password Policy Control
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
PasswordPolicyControl()
          Creates a non-critical (request) control.
PasswordPolicyControl(boolean critical)
          Creates a (request) control.
 
Method Summary
 byte[] getEncodedValue()
          Retrieves the ASN.1 BER encoded value of the LDAP control.
 String getID()
          Returns the OID of the Password Policy Control ("1.3.6.1.4.1.42.2.27.8.5.1").
 boolean isCritical()
          Returns whether the control is critical for the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OID

public static final String OID
OID of the Password Policy Control

See Also:
Constant Field Values
Constructor Detail

PasswordPolicyControl

public PasswordPolicyControl()
Creates a non-critical (request) control.


PasswordPolicyControl

public PasswordPolicyControl(boolean critical)
Creates a (request) control.

Parameters:
critical - indicates whether the control is critical for the client
Method Detail

getEncodedValue

public byte[] getEncodedValue()
Retrieves the ASN.1 BER encoded value of the LDAP control. The request value for this control is always empty.

Specified by:
getEncodedValue in interface Control
Returns:
always null

getID

public String getID()
Returns the OID of the Password Policy Control ("1.3.6.1.4.1.42.2.27.8.5.1").

Specified by:
getID in interface Control

isCritical

public boolean isCritical()
Returns whether the control is critical for the client.

Specified by:
isCritical in interface Control


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.