com.ibm.wsspi.security.auth.callback

Class WSTokenHolderCallback

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.auth.callback.WSTokenHolderCallback
All implemented interfaces:
javax.security.auth.callback.Callback

  1. public class WSTokenHolderCallback
  2. extends java.lang.Object
  3. 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.

Since:
1.0
Version:
1.0
See Also:
CallbackHandler, WSCallbackHandlerImpl

Constructor Summary

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.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getPrompt()
Return the prompt.
  1. boolean
getRequiresLogin()
Returns the requiresLogin boolean.
  1. java.util.List
getTokenHolderList()
Return the TokenHolder List.
  1. void
setRequiresLogin(boolean requiresLogin)
Sets the requiresLogin field.
  1. void
setTokenHolderList(java.util.List list)
Set the TokenHolder array list.
  1. java.lang.String
toString()
Returns the name of the Callback.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

WSTokenHolderCallback

  1. public WSTokenHolderCallback(java.lang.String prompt)

Construct a WSTokenHolderCallback object with a prompt hint.

Parameters:
prompt - The prompt hint.

WSTokenHolderCallback

  1. public WSTokenHolderCallback(java.lang.String prompt,
  2. java.util.List list,
  3. boolean requiresLogin)

Construct a WSTokenHolderCallback object with a prompt hint and a List instance.

Parameters:
prompt - The prompt hint.

Method Detail

setTokenHolderList

  1. public void setTokenHolderList( java.util.List list)

Set the TokenHolder array list.


getTokenHolderList

  1. public java.util.List getTokenHolderList( )

Return the TokenHolder List. If the List instance set in Constructor is null, then null is returned.

Returns:
The List, could be null.

setRequiresLogin

  1. public void setRequiresLogin(boolean requiresLogin)

Sets the requiresLogin field. See getRequiresLogin() method for information about this value.


getRequiresLogin

  1. 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.

Returns:
requiresLogin boolean

getPrompt

  1. public java.lang.String getPrompt( )

Return the prompt. If the prompt set in Constructor is null, then null is returned.

Returns:
The prompt, could be null.

toString

  1. public java.lang.String toString( )

Returns the name of the Callback. Typically, it is the name of the class.

Overrides:
toString in class java.lang.Object
Returns:
The name of the Callback.