Class WSRealmNameCallbackImpl
- java.lang.Object
-
- com.ibm.websphere.security.auth.callback.WSRealmNameCallbackImpl
-
- All Implemented Interfaces:
- javax.security.auth.callback.Callback
public class WSRealmNameCallbackImpl extends java.lang.Object implements javax.security.auth.callback.Callback
The
WSRealmNameCallbackImpl
allows realm name to be gathered byCallbackHandler
and pass it to theLoginModule
. This is used byWSClientLoginModuleImpl
andWSLoginModuleImpl
.- Since:
- 7.0
- Version:
- 7.0
- See Also:
CallbackHandler
,WSCallbackHandlerImpl
,com.ibm.websphere.security.auth.module.WSClientLoginModuleImpl
,com.ibm.websphere.security.auth.module.WSLoginModuleImpl
-
-
Constructor Summary
Constructors Constructor and Description WSRealmNameCallbackImpl(java.lang.String prompt)
Construct aWSRealmNameCallbackImpl
object with a prompt hint.WSRealmNameCallbackImpl(java.lang.String prompt, java.lang.String defaultRealmName)
Construct aWSRealmNameCallbackImpl
object with a prompt hint and a default realm name.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getDefaultRealmName()
Return the default realm name.java.lang.String
getPrompt()
Return the prompt.java.lang.String
getRealmName()
Return the realm name.void
setRealmName(java.lang.String realmName)
Set the realm name.java.lang.String
toString()
Returns the name of the Callback.
-
-
-
Constructor Detail
-
WSRealmNameCallbackImpl
public WSRealmNameCallbackImpl(java.lang.String prompt)
Construct a
WSRealmNameCallbackImpl
object with a prompt hint.- Parameters:
prompt
- The prompt hint.
-
WSRealmNameCallbackImpl
public WSRealmNameCallbackImpl(java.lang.String prompt, java.lang.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 Detail
-
setRealmName
public void setRealmName(java.lang.String realmName)
Set the realm name.
- Parameters:
realmName
- The realm name.
-
getRealmName
public java.lang.String 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
public java.lang.String 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
public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor is
null
, thennull
is returned.- Returns:
- The prompt, could be
null
.
-
toString
public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The name of the Callback.
-
-