org.mpisws.p2p.pki.x509
Interface CATool

All Known Implementing Classes:
CAToolImpl

public interface CATool


Method Summary
 X509Certificate getCertificate()
           
 X509Certificate sign(String CN, PublicKey key)
           
 X509Certificate sign(String CN, PublicKey publicKey, Date expiryDate, long serialNumber)
           
 

Method Detail

sign

X509Certificate sign(String CN,
                     PublicKey key)
                     throws CertificateParsingException,
                            CertificateEncodingException,
                            InvalidKeyException,
                            IllegalStateException,
                            NoSuchProviderException,
                            NoSuchAlgorithmException,
                            SignatureException
Throws:
CertificateParsingException
CertificateEncodingException
InvalidKeyException
IllegalStateException
NoSuchProviderException
NoSuchAlgorithmException
SignatureException

sign

X509Certificate sign(String CN,
                     PublicKey publicKey,
                     Date expiryDate,
                     long serialNumber)
                     throws CertificateParsingException,
                            CertificateEncodingException,
                            InvalidKeyException,
                            IllegalStateException,
                            NoSuchProviderException,
                            NoSuchAlgorithmException,
                            SignatureException
Throws:
CertificateParsingException
CertificateEncodingException
InvalidKeyException
IllegalStateException
NoSuchProviderException
NoSuchAlgorithmException
SignatureException

getCertificate

X509Certificate getCertificate()


Copyright © 2010. All Rights Reserved.