com.netscape.jndi.ldap.controls

Class LdapPasswordExpiringControl

Implemented Interfaces:
Control

public class LdapPasswordExpiringControl
extends LDAPPasswordExpiringControl
implements Control

Represents an LDAP v3 server control that may be returned if a password is about to expire, and password policy is enabled on the server. The OID for this control is 2.16.840.1.113730.3.4.5.

Method Summary

byte[]
getEncodedValue()
Retrieves the ASN.1 BER encoded value of the LDAP control.
int
getSecondsToExipre()
Return parsed number of seconds before password expires

Method Details

getEncodedValue

public byte[] getEncodedValue()
Retrieves the ASN.1 BER encoded value of the LDAP control. Null is returned if the value is absent.
Returns:
A possibly null byte array representing the ASN.1 BER encoded value of the LDAP control.

getSecondsToExipre

public int getSecondsToExipre()
Return parsed number of seconds before password expires
Returns:
number of seconds before password expires