IBM WebSphere Application ServerTM
Release 7

com.ibm.wsspi.security.token
Class TokenHolder

java.lang.Object
  extended by com.ibm.wsspi.security.token.TokenHolder
All Implemented Interfaces:
java.io.Serializable

public class TokenHolder
extends java.lang.Object
implements java.io.Serializable

This class is used to temporarily hold the raw byte[], token name and version that comes inbound from a protocol. The TokenHolder object is put into a Subject that gets passed into the LoginContext. The provider login modules will decide if the TokenHolder object belongs to them, and if so, will remove the TokenHolder object from the Subject and create a Token object instance from it and add that back to the Subject.

Since:
5.1.1
Version:
5.1.1
See Also:
Serialized Form

Constructor Summary
TokenHolder(byte[] bytes, java.lang.String name, int version)
           
 
Method Summary
 byte[] getBytes()
          Returns the byte[] of the token.
 java.lang.String getName()
          Returns the name of the token.
 int getVersion()
          Returns the version of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenHolder

public TokenHolder(byte[] bytes,
                   java.lang.String name,
                   int version)
Method Detail

getBytes

public byte[] getBytes()
Returns the byte[] of the token.

Returns:
byte[]

getName

public java.lang.String getName()
Returns the name of the token.

Returns:
String

getVersion

public int getVersion()
Returns the version of the token.

Returns:
short;

IBM WebSphere Application ServerTM
Release 7