Class JAASCallbackHandler

  • All Implemented Interfaces:
    CallbackHandler

    public class JAASCallbackHandler
    extends Object
    implements CallbackHandler

    Implementation of the JAAS CallbackHandler interface, used to negotiate delivery of the username and credentials that were specified to our constructor. No interaction with the user is required (or possible).

    Version:
    $Revision: 1.2 $ $Date: 2005/12/08 01:27:52 $
    Author:
    Craig R. McClanahan
    • Field Detail

      • password

        protected char[] password
        The password to be authenticated with.
      • realm

        protected JAASRealm realm
        The associated JAASRealm instance.
      • username

        protected String username
        The username to be authenticated with.
    • Constructor Detail

      • JAASCallbackHandler

        public JAASCallbackHandler​(JAASRealm realm,
                                   String username,
                                   char[] password)
        Construct a callback handler configured with the specified values.
        Parameters:
        realm - Our associated JAASRealm instance
        username - Username to be authenticated with
        password - Password to be authenticated with