Class AuthorizationIdentityResponseControl


  • public class AuthorizationIdentityResponseControl
    extends Control
    This class implements the authorization identity response control as defined in RFC 3829. It may be included in a bind response message to provide the authorization ID resulting for a client after the bind operation as completed.
    • Constructor Detail

      • AuthorizationIdentityResponseControl

        public AuthorizationIdentityResponseControl()
        Creates a new authorization identity response control using the default settings to indicate an anonymous authentication.
      • AuthorizationIdentityResponseControl

        public AuthorizationIdentityResponseControl​(boolean isCritical)
        Creates a new authorization identity response control using the default settings to indicate an anonymous authentication.
        Parameters:
        isCritical - Indicates whether this control should be considered critical in processing the request.
      • AuthorizationIdentityResponseControl

        public AuthorizationIdentityResponseControl​(String authorizationID)
        Creates a new authorization identity response control with the provided information.
        Parameters:
        authorizationID - The authorization ID for this control.
      • AuthorizationIdentityResponseControl

        public AuthorizationIdentityResponseControl​(boolean isCritical,
                                                    String authorizationID)
        Creates a new authorization identity response control with the provided information.
        Parameters:
        isCritical - Indicates whether this control should be considered critical in processing the request.
        authorizationID - The authorization ID for this control.
      • AuthorizationIdentityResponseControl

        public AuthorizationIdentityResponseControl​(DN authorizationDN)
        Creates a new authorization identity response control with the provided information.
        Parameters:
        authorizationDN - The authorization DN for this control.
    • 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.
      • getAuthorizationID

        public String getAuthorizationID()
        Retrieves the authorization ID for this authorization identity response control.
        Returns:
        The authorization ID for this authorization identity response control.
      • toString

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