|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Credential
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.
CredentialGenerator
Method Summary | |
---|---|
boolean |
equals(Object o)
Checks two Credential objects for equality. |
int |
hashCode()
Returns the hashcode of the Credential object |
Method Detail |
---|
boolean equals(Object o)
Two Credential objects are considered equal if and only if they represent the same identity and security information.
equals
in class Object
o
- the object we are testing for equality with this object.
true
if both Credential objects are equivalent.int hashCode()
hashCode
in class Object
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |