com.ibm.wsspi.security.token

Class TokenHolder

  • java.lang.Object
    • 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

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

      Methods 
      Modifier and Type Method and Description
      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 8.5