IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.security.plugins.builtins
Class WSTokenCredential

java.lang.Object
  extended by com.ibm.websphere.objectgrid.security.plugins.builtins.WSTokenCredential
All Implemented Interfaces:
Credential, Serializable

public final class WSTokenCredential
extends Object
implements Credential

This class represents a WebSphere Application Server security token credential. An instance of this class contains byte arrays which represent the security tokens used in the Application server. Specifically, this credential contains two tokens, a WebSphere specific authentication token and a WebSphere specific opaque authorization token.

Since:
WAS XD 6.0.1, XC10
See Also:
WSTokenCredentialGenerator.getCredential(), Serialized Form

Constructor Summary
WSTokenCredential(byte[] at, byte[] oat)
          Creates a new WebSphere token credential with the specified security tokens.
 
Method Summary
 boolean equals(Object obj)
          Checks two WSTokenCredential objects for equality.
 byte[] getAT()
          Gets the authetication token for this credential.
 byte[] getOAT()
          Gets the opaque authorization token for this credential.
 int hashCode()
          Returns the hashcode of the WSTokenCredential object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTokenCredential

public WSTokenCredential(byte[] at,
                         byte[] oat)
Creates a new WebSphere token credential with the specified security tokens.

Parameters:
at - the authentication token
oat - the opaque authorization token
Method Detail

getAT

public byte[] getAT()
Gets the authetication token for this credential.

Returns:
the authentication token argument that was passed to the constructor of this class

getOAT

public byte[] getOAT()
Gets the opaque authorization token for this credential.

Returns:
the opaque authorization token argument that was passed to the constructor of this class

equals

public boolean equals(Object obj)
Checks two WSTokenCredential objects for equality.

Two WSTokenCredential objects are equal if and only if their authentication tokens and opaque authorization tokens are equal.

Specified by:
equals in interface Credential
Overrides:
equals in class Object
Parameters:
obj - the object we are testing for equality with this object.
Returns:
true if both WSTokenCredential objects are equivalent.
See Also:
Credential.equals(Object)

hashCode

public int hashCode()
Returns the hashcode of the WSTokenCredential object.

Specified by:
hashCode in interface Credential
Overrides:
hashCode in class Object
Returns:
the hash code of this object
See Also:
Credential.hashCode()

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.