Class WSRealmNameCallbackImpl
java.lang.Object
com.ibm.websphere.security.auth.callback.WSRealmNameCallbackImpl
- All Implemented Interfaces:
Callback
The WSRealmNameCallbackImpl allows realm name to be gathered by
CallbackHandler and pass it to the LoginModule.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionWSRealmNameCallbackImpl(String prompt) Construct aWSRealmNameCallbackImplobject with a prompt hint.WSRealmNameCallbackImpl(String prompt, String defaultRealmName) Construct aWSRealmNameCallbackImplobject with a prompt hint and a default realm name. -
Method Summary
Modifier and TypeMethodDescriptionReturn the default realm name.Return the prompt.Return the realm name.voidsetRealmName(String realmName) Set the realm name.toString()Returns the name of the Callback.
-
Constructor Details
-
WSRealmNameCallbackImpl
Construct a
WSRealmNameCallbackImplobject with a prompt hint.- Parameters:
prompt- The prompt hint.
-
WSRealmNameCallbackImpl
Construct a
WSRealmNameCallbackImplobject with a prompt hint and a default realm name.- Parameters:
prompt- The prompt hint.defaultRealmName- The default realm name.
-
-
Method Details
-
setRealmName
Set the realm name.
- Parameters:
realmName- The realm name.
-
getRealmName
Return the realm name. If the realm name set in
WSRealmNameCallbackImpl.setRealmName()isnull, thennullis returned.- Returns:
- The realm name, could be
null.
-
getDefaultRealmName
Return the default realm name. If the default realm name set in Constructor is
null, thennullis returned.- Returns:
- The default realm name, could be
null.
-
getPrompt
Return the prompt. If the prompt set in Constructor is
null, thennullis returned.- Returns:
- The prompt, could be
null.
-
toString
Returns the name of the Callback. Typically, it is the name of the class.
-