|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mozilla.jss.pkix.cert.Certificate
An X.509 signed certificate.
Inner Class Summary | |
static class |
Certificate.Template
|
Constructor Summary | |
Certificate(CertificateInfo info,
java.security.PrivateKey privKey,
SignatureAlgorithm signingAlg)
Creates and signs an X.509 Certificate. |
Method Summary | |
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag. |
void |
encode(Tag implicitTag,
java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag. |
CertificateInfo |
getInfo()
Returns the information (TBSCertificate) contained in this certificate. |
Tag |
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. |
static Certificate.Template |
getTemplate()
|
static void |
main(java.lang.String[] argv)
|
void |
verify()
Verifies the signature on this certificate. |
void |
verify(java.security.PublicKey key)
Verifies the signature on this certificate, using the given public key. |
void |
verify(java.security.PublicKey key,
CryptoToken token)
Verifies the signature on this certificate, using the given public key and CryptoToken. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Certificate(CertificateInfo info, java.security.PrivateKey privKey, SignatureAlgorithm signingAlg) throws java.io.IOException, CryptoManager.NotInitializedException, TokenException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.security.InvalidKeyException, java.security.SignatureException
info
- A CertificateInfo (TBSCertificate), which specifies
the actual information of the certificate.privKey
- The private key with which to sign the certificat.signingAlg
- The algorithm to use to sign the certificate.
It must match the algorithm specified in the CertificateInfo.Method Detail |
public void verify() throws java.security.InvalidKeyException, CryptoManager.NotInitializedException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, TokenException, java.security.SignatureException, InvalidKeyFormatException
public void verify(java.security.PublicKey key) throws java.security.InvalidKeyException, CryptoManager.NotInitializedException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, TokenException, java.security.SignatureException
public void verify(java.security.PublicKey key, CryptoToken token) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, TokenException, java.security.SignatureException, java.security.InvalidKeyException
public CertificateInfo getInfo()
public Tag getTag()
public void encode(java.io.OutputStream ostream) throws java.io.IOException
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
public static Certificate.Template getTemplate()
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |