Class JaasNameCallbackHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.security.auth.callback.Callback callback, Authentication authentication)
      If the callback passed to the 'handle' method is an instance of NameCallback, the JaasNameCallbackHandler will call, callback.setName(authentication.getPrincipal().toString()).
      • Methods inherited from class java.lang.Object

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

      • JaasNameCallbackHandler

        public JaasNameCallbackHandler()
    • Method Detail

      • handle

        public void handle​(javax.security.auth.callback.Callback callback,
                           Authentication authentication)
        If the callback passed to the 'handle' method is an instance of NameCallback, the JaasNameCallbackHandler will call, callback.setName(authentication.getPrincipal().toString()).
        Specified by:
        handle in interface JaasAuthenticationCallbackHandler
        Parameters:
        callback -
        authentication -