Class UserCallBackHandler

  • All Implemented Interfaces:
    javax.security.auth.callback.CallbackHandler

    public class UserCallBackHandler
    extends java.lang.Object
    implements javax.security.auth.callback.CallbackHandler
    The application implements the CallbackHandler. This application is text-based. Therefore it displays information to the user using the OutputStreams System.out and System.err, and gathers input from the user using the InputStream System.in.
    • Constructor Summary

      Constructors 
      Constructor Description
      UserCallBackHandler​(java.lang.String name, java.lang.String password)  
    • Method Summary

      Modifier and Type Method Description
      void handle​(javax.security.auth.callback.Callback[] callbacks)
      Invoke an array of Callbacks.
      • Methods inherited from class java.lang.Object

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

      • UserCallBackHandler

        public UserCallBackHandler​(java.lang.String name,
                                   java.lang.String password)
    • Method Detail

      • handle

        public void handle​(javax.security.auth.callback.Callback[] callbacks)
                    throws java.io.IOException,
                           javax.security.auth.callback.UnsupportedCallbackException
        Invoke an array of Callbacks.
        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler
        Parameters:
        callbacks - an array of Callback objects which contain the information requested by an underlying security service to be retrieved or displayed.
        Throws:
        java.io.IOException - if an input or output error occurs.
        javax.security.auth.callback.UnsupportedCallbackException - if the implementation of this method does not support one or more of the Callbacks specified in the callbacks parameter.