org.apache.storm.security.auth.kerberos

## Class ClientCallbackHandler

- java.lang.Object
- - org.apache.storm.security.auth.kerberos.ClientCallbackHandler

- All Implemented Interfaces:
    CallbackHandler

      public class ClientCallbackHandler
      extends Object
      implements CallbackHandler

  SASL client side callback handler.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClientCallbackHandler(Map<String,Object> topoConf)` Constructor based on a JAAS configuration.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(Callback[] callbacks)` This method is invoked by SASL for authentication challenges.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ClientCallbackHandler

          public ClientCallbackHandler(Map<String,Object> topoConf)
                                throws IOException

      Constructor based on a JAAS configuration.

      For digest, you should have a pair of user name and password defined in this figgure.

      Throws:
        `IOException`

  - ### Method Detail

    - #### handle

          public void handle(Callback[] callbacks)
                      throws IOException,
                             UnsupportedCallbackException

      This method is invoked by SASL for authentication challenges.

      Specified by:
        `handle` in interface `CallbackHandler`
      Parameters:
        `callbacks` - a collection of challenge callbacks
      Throws:
        `IOException`
        `UnsupportedCallbackException`

Copyright © 2021 The Apache Software Foundation. All rights reserved.