IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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

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

public class ClientCertificateCredential
extends Object
implements Credential

This class represents a credential which contains a SSL client certificate chain. This credential can be used for the ObjectGrid client certificate authentication.

Since:
WAS XD 6.0.1
See Also:
Credential, Serialized Form

Constructor Summary
ClientCertificateCredential(Certificate[] certs)
          Creates a new ClientCertificateCredential using the specified certificates.
 
Method Summary
 boolean equals(Object o)
          Checks two ClientCertificateCredential objects for equality.
 Certificate[] getCerts()
          Gets the client certificate chain array.
 int hashCode()
          Returns the hashcode of the ClientCertificateCredential object.
 void setCerts(Certificate[] certs)
          Sets the client certificate chain array.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientCertificateCredential

public ClientCertificateCredential(Certificate[] certs)
Creates a new ClientCertificateCredential using the specified certificates.

Parameters:
certs - the client certificate chain array
Method Detail

getCerts

public Certificate[] getCerts()
Gets the client certificate chain array.

Returns:
the argument that was passed to the constructor or the setCerts(Certificate[]) method of this class
See Also:
setCerts(Certificate[])

setCerts

public void setCerts(Certificate[] certs)
Sets the client certificate chain array.

Parameters:
certs - a client certification chain array

equals

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

Two ClientCertficateCredential are equal if and only their client certificate chains are equal. That is, the same-index elements of their certificate chain array are equal.

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

hashCode

public int hashCode()
Returns the hashcode of the ClientCertificateCredential 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.