Class AuthenticationCompleteCallback

  • All Implemented Interfaces:
    Serializable, Callback, ExtendedCallback

    public final class AuthenticationCompleteCallback
    extends Object
    implements ExtendedCallback, Serializable
    An optional callback indicating the success or failure of the authentication operation. When this callback is received, the callback handler may free any resources that were required to perform the authentication. This callback should always be sent to the callback handler last.
    Author:
    David M. Lloyd
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationCompleteCallback

        private AuthenticationCompleteCallback​(boolean success)
        Construct a new instance.
        Parameters:
        success - true if the authentication was successful, false otherwise
    • Method Detail

      • succeeded

        public boolean succeeded()
        Determine whether authentication succeeded. Always returns the opposite of failed().
        Returns:
        true if authentication succeeded, false otherwise
      • failed

        public boolean failed()
        Determine whether authentication failed. Always returns the opposite of succeeded().
        Returns:
        true if the authentication failed, false otherwise
      • readResolve

        Object readResolve()
        Replace the deserialized instance with the sppropriate singleton instance.
        Returns:
        The singleton instance.