Class JaasAuthenticationHandler.UsernamePasswordCallbackHandler

  • All Implemented Interfaces:
    javax.security.auth.callback.CallbackHandler
    Enclosing class:
    JaasAuthenticationHandler

    protected static class JaasAuthenticationHandler.UsernamePasswordCallbackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler
    A simple JAAS CallbackHandler which accepts a Name String and Password String in the constructor. Only NameCallbacks and PasswordCallbacks are accepted in the callback array. This code based loosely on example given in Sun's javadoc for CallbackHandler interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.security.auth.callback.Callback[] callbacks)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UsernamePasswordCallbackHandler

        protected UsernamePasswordCallbackHandler()
    • Method Detail

      • handle

        public void handle​(javax.security.auth.callback.Callback[] callbacks)
        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler