iaik.me.keymgmt
Class KeyAndCert
java.lang.Object
|
+--iaik.me.keymgmt.KeyAndCert
- public class KeyAndCert
- extends Object
This class stores a key and the corresponding certificate chain. It is used
throughout the library whenever credentials are needed. The certificate
chain must contain the end entity certificate at index 0.
KeyAndCert
public KeyAndCert(X509Certificate[] chain,
PrivateKey privateKey)
- Create a new KeyAndCert object. Both arguments must be non-null and
the chain has to consist of at least one element.
getPrivateKey
public final PrivateKey getPrivateKey()
- Get the private key.
getCertificateChain
public final X509Certificate[] getCertificateChain()
- Get the certificate chain.
equals
public boolean equals(Object obj)
- Test two objects for equality.
- Overrides:
equals
in class Object
toString
public String toString()
- Return a string representation of this object.
- Overrides:
toString
in class Object
IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC