Package org.apache.storm.security.auth.sasl

# Class SimpleSaslClientCallbackHandler

java.lang.Object
org.apache.storm.security.auth.sasl.SimpleSaslClientCallbackHandler

All Implemented Interfaces:
  `CallbackHandler`

Direct Known Subclasses:
  `PlainClientCallbackHandler`, `WorkerTokenClientCallbackHandler`

public class SimpleSaslClientCallbackHandler extends Object implements CallbackHandler
A client callback handler that supports a single username and password.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SimpleSaslClientCallbackHandler(String username, String password)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `handle(Callback[] callbacks)`

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

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

- ## Constructor Details

  - ### SimpleSaslClientCallbackHandler

    public SimpleSaslClientCallbackHandler(String username, String password)
    Constructor.
    Parameters:
      `username` - the username to use.
      `password` - the password to use.

- ## Method Details

  - ### handle

    public void handle(Callback[] callbacks) throws UnsupportedCallbackException
    Specified by:
      `handle` in interface `CallbackHandler`
    Throws:
      `UnsupportedCallbackException`