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
ConstructorDescriptionWSRealmNameCallbackImpl
(String prompt) Construct aWSRealmNameCallbackImpl
object with a prompt hint.WSRealmNameCallbackImpl
(String prompt, String defaultRealmName) Construct aWSRealmNameCallbackImpl
object 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.void
setRealmName
(String realmName) Set the realm name.toString()
Returns the name of the Callback.
-
Constructor Details
-
WSRealmNameCallbackImpl
Construct a
WSRealmNameCallbackImpl
object with a prompt hint.- Parameters:
prompt
- The prompt hint.
-
WSRealmNameCallbackImpl
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
Set the realm name.
- Parameters:
realmName
- The realm name.
-
getRealmName
Return the realm name. If the realm name set in
WSRealmNameCallbackImpl.setRealmName()
isnull
, thennull
is returned.- Returns:
- The realm name, could be
null
.
-
getDefaultRealmName
Return the default realm name. If the default realm name set in Constructor is
null
, thennull
is returned.- Returns:
- The default realm name, could be
null
.
-
getPrompt
Return the prompt. If the prompt set in Constructor is
null
, thennull
is returned.- Returns:
- The prompt, could be
null
.
-
toString
Returns the name of the Callback. Typically, it is the name of the class.
-