Class WSAppContextCallback

java.lang.Object
com.ibm.wsspi.security.auth.callback.WSAppContextCallback
All Implemented Interfaces:
Callback

public class WSAppContextCallback extends Object implements Callback

The WSAppContextCallback allows an Context object to be gathered by CallbackHandler and pass it to the LoginModule stack.

Since:
1.0
  • Constructor Details

    • WSAppContextCallback

      public WSAppContextCallback(String prompt)

      Construct a WSAppContextCallback object with a prompt hint.

      Parameters:
      prompt - The prompt hint.
    • WSAppContextCallback

      public WSAppContextCallback(String prompt, Map context)

      Construct a WSAppContextCallback object with a prompt hint and an Context instance.

      Parameters:
      prompt - The prompt hint.
      Context - context
  • Method Details

    • setContext

      public void setContext(Map context)

      Set the application context.

      Parameters:
      context - : The application context.
    • getContext

      public Map getContext()

      Return the Context. If the Context instance set in Constructor is null, then null is returned.

      Returns:
      The Context, could be null.
    • getPrompt

      public String getPrompt()

      Return the prompt. If the prompt set in Constructor is null, then null is returned.

      Returns:
      The prompt, could be null.
    • toString

      public String toString()

      Returns the name of the Callback. Typically, it is the name of the class.

      Overrides:
      toString in class Object
      Returns:
      The name of the Callback.