Class AutoCallbackHandler

java.lang.Object
com.spotfire.server.jaas.util.AutoCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class AutoCallbackHandler extends Object implements CallbackHandler
The AutoCallbackHandler is a utility class that can be used by all JAAS clients. It automatically handles Callback processing without requiring any user interaction, which makes it suitable for web application environments, where the user interaction has special requirements.

The constructor takes one username and one password argument. The username is used to set the name property of a NameCallback and the password is used to set the password property of a PasswordCallback. Both constructor arguments may be null.

The supported Callback implementations are NameCallback and PasswordCallback. The handle throws an UnsupportedCallbackException for all other Callback classes.

Since:
3.0
  • Constructor Details

    • AutoCallbackHandler

      public AutoCallbackHandler(String username, String password)
      Creates a new AutoCallbackHandler instance.
      Parameters:
      username - the username, which may be null
      password - the password, which may be null
      Since:
      3.0
  • Method Details