Class PasswordExpiredControl


  • public class PasswordExpiredControl
    extends Control
    This class implements the Netscape password expired control. The value for this control should be a string that indicates the length of time until the password expires, but because it is already expired it will always be "0".
    • Constructor Detail

      • PasswordExpiredControl

        public PasswordExpiredControl()
        Creates a new instance of the password expired control with the default settings.
      • PasswordExpiredControl

        public PasswordExpiredControl​(boolean isCritical)
        Creates a new instance of the password expired control with the provided information.
        Parameters:
        isCritical - Indicates whether support for this control should be considered a critical part of the client processing.
    • Method Detail

      • writeValue

        public void writeValue​(ASN1Writer writer)
                        throws IOException
        Description copied from class: Control
        Writes this control's value to an ASN.1 writer. The value (if any) must be written as an ASN1OctetString.
        Specified by:
        writeValue in class Control
        Parameters:
        writer - The ASN.1 writer to use.
        Throws:
        IOException - If a problem occurs while writing to the stream.
      • toString

        public void toString​(StringBuilder buffer)
        Appends a string representation of this password expired control to the provided buffer.
        Overrides:
        toString in class Control
        Parameters:
        buffer - The buffer to which the information should be appended.