Class WSRealmNameCallbackImpl

java.lang.Object
com.ibm.websphere.security.auth.callback.WSRealmNameCallbackImpl
All Implemented Interfaces:
Callback

public class WSRealmNameCallbackImpl extends Object implements Callback

The WSRealmNameCallbackImpl allows realm name to be gathered by CallbackHandler and pass it to the LoginModule.

Since:
1.0
  • Constructor Details

    • WSRealmNameCallbackImpl

      public WSRealmNameCallbackImpl(String prompt)

      Construct a WSRealmNameCallbackImpl object with a prompt hint.

      Parameters:
      prompt - The prompt hint.
    • WSRealmNameCallbackImpl

      public WSRealmNameCallbackImpl(String prompt, String defaultRealmName)

      Construct a WSRealmNameCallbackImpl object with a prompt hint and a default realm name.

      Parameters:
      prompt - The prompt hint.
      defaultRealmName - The default realm name.
  • Method Details

    • setRealmName

      public void setRealmName(String realmName)

      Set the realm name.

      Parameters:
      realmName - The realm name.
    • getRealmName

      public String getRealmName()

      Return the realm name. If the realm name set in WSRealmNameCallbackImpl.setRealmName() is null, then null is returned.

      Returns:
      The realm name, could be null.
    • getDefaultRealmName

      public String getDefaultRealmName()

      Return the default realm name. If the default realm name set in Constructor is null, then null is returned.

      Returns:
      The default realm name, 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.