anon.crypto
Interface ICertificate

All Known Implementing Classes:
JAPCertificate, PKCS12

public interface ICertificate

This interface represents the common methods of cryptographic certificates.

Author:
Rolf Wendolsky

Method Summary
 IMyPublicKey getPublicKey()
          Returns the public key of this certificate.
 JAPCertificate getX509Certificate()
          Returns the X509 certificate corresponding to this certificate.
 byte[] toByteArray()
          Converts the certificate to a byte array.
 

Method Detail

getPublicKey

IMyPublicKey getPublicKey()
Returns the public key of this certificate.

Returns:
the public key of this certificate

getX509Certificate

JAPCertificate getX509Certificate()
Returns the X509 certificate corresponding to this certificate. (This may be the certificate itself.)

Returns:
the X509 certificate corresponding to this certificate

toByteArray

byte[] toByteArray()
Converts the certificate to a byte array.

Returns:
the certificate as a byte array