public class WSTokenHolderCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSTokenHolderCallback allows a List of TokenHolder objects to
be gathered by CallbackHandler and pass it to the LoginModule
stack. This is used by AuthenLoginModule and ltpaLoginModule.
CallbackHandler,
WSCallbackHandlerImpl| Constructor and Description |
|---|
WSTokenHolderCallback(java.lang.String prompt)
Construct a
WSTokenHolderCallback object with a prompt hint. |
WSTokenHolderCallback(java.lang.String prompt,
java.util.List list,
boolean requiresLogin)
Construct a
WSTokenHolderCallback object with a prompt hint and
a List instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPrompt()
Return the prompt.
|
boolean |
getRequiresLogin()
Returns the requiresLogin boolean.
|
java.util.List |
getTokenHolderList()
Return the TokenHolder List.
|
void |
setRequiresLogin(boolean requiresLogin)
Sets the requiresLogin field.
|
void |
setTokenHolderList(java.util.List list)
Set the TokenHolder array list.
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSTokenHolderCallback(java.lang.String prompt)
Construct a WSTokenHolderCallback object with a prompt hint.
prompt - The prompt hint.public WSTokenHolderCallback(java.lang.String prompt,
java.util.List list,
boolean requiresLogin)
Construct a WSTokenHolderCallback object with a prompt hint and
a List instance.
prompt - The prompt hint.List - listpublic void setTokenHolderList(java.util.List list)
Set the TokenHolder array list.
list: - The TokenHolder List.public java.util.List getTokenHolderList()
Return the TokenHolder List. If the List instance set in
Constructor is null, then null is returned.
null.public void setRequiresLogin(boolean requiresLogin)
Sets the requiresLogin field. See getRequiresLogin() method for information about this value.
requiresLogin: - public boolean getRequiresLogin()
Returns the requiresLogin boolean. When true, this provides a hint to the service provider login module that there is insufficient information propagated and a new login will be required. This hint can be used to provide a hashtable of login attributes, if preferred. When false, it's best not to specify a hashtable of login attributes and instead use the propagated information to recreate the Subject. If one wants to override (map) the identity, then this can be ignored and a hashtable may be specified anyway.
public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor
is null, then null is returned.
null.public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
toString in class java.lang.Object