com.ibm.wsspi.security.token

Class TokenHolder

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.security.token.TokenHolder
All implemented interfaces:
java.io.Serializable

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

Constructor and Description
TokenHolder(byte[] bytes,java.lang.String name,int version)

Method Summary

Modifier and Type Method and Description
  1. byte[]
getBytes()
Returns the byte[] of the token.
  1. java.lang.String
getName()
Returns the name of the token.
  1. 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

  1. public TokenHolder(byte[] bytes,
  2. java.lang.String name,
  3. int version)

Method Detail

getBytes

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

getName

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

getVersion

  1. public int getVersion()
Returns the version of the token.
Returns:
short;