IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.security.plugins
Interface Credential

All Superinterfaces:
Serializable
All Known Implementing Classes:
ClientCertificateCredential, UserPasswordCredential, WSTokenCredential

public interface Credential
extends Serializable

This interface represents a credential used by an ObjectGrid client. An instance of this class represents one client indentity. This credential will be sent to the ObjectGrid server for authentication. It should be serializable.

A credential has to implement the equals(Object) and hashCode() methods. Two Credential objects are considered equal if and only if they represent the same identity and security information. For example, if the credential contains a user ID and password. Two credentials are equal if and only if both their user IDs and passwords are equal.

ObjectGrid provides three built-in implementations for this interface:

Refer to the respective JavaDoc for more details.

Since:
WAS XD 6.0.1, XC10
See Also:
CredentialGenerator

Method Summary
 boolean equals(Object o)
          Checks two Credential objects for equality.
 int hashCode()
          Returns the hashcode of the Credential object
 

Method Detail

equals

boolean equals(Object o)
Checks two Credential objects for equality.

Two Credential objects are considered equal if and only if they represent the same identity and security information.

Overrides:
equals in class Object
Parameters:
o - the object we are testing for equality with this object.
Returns:
true if both Credential objects are equivalent.

hashCode

int hashCode()
Returns the hashcode of the Credential object

Overrides:
hashCode in class Object
Returns:
the hash code of the Credential object

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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