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.


Constructor Summary
KeyAndCert(X509Certificate[] chain, PrivateKey privateKey)
          Create a new KeyAndCert object.
 
Method Summary
 boolean equals(Object obj)
          Test two objects for equality.
 X509Certificate[] getCertificateChain()
          Get the certificate chain.
 PrivateKey getPrivateKey()
          Get the private key.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

This Javadoc may contain text parts from IETF Internet Standard specifications, see copyright note) and RSA Data Security Public-Key Cryptography Standards (see copyright note).

IAIK-JCE ME 3.04, (c) 2002 IAIK, (c) 2003 to 2006 Stiftung SIC