COM.claymoresystems.cert
Class X509Cert
java.lang.Object
COM.claymoresystems.cert.X509Cert
- Certificate
public class X509Cert
extends java.lang.Object
A single X509 Certificate.
The interface here does not match Sun's certificate interface,
and even though that interface is pretty useless, we should
still probably implement it.
X509Cert(byte[] ber_) - Create an X509Cert from an encoded value
|
X509Cert
public X509Cert(byte[] ber_)
throws CertificateException
Create an X509Cert from an encoded value
ber_
- the encoded certificate as a byte[]
Currently this chokes if the cert is poorly encoded. We
have to fix that to throw an IOException. TODO
getDER
public byte[] getDER()
Get the encoded form of this certificate
- getDER in interface Certificate
getIssuerDER
public byte[] getIssuerDER()
Get the encoded form of the issuerName
- getIssuerDER in interface Certificate
- the DER encoded issuerName
getPublicKey
public PublicKey getPublicKey()
Get the publicKey associated with this certificate
getSubjectDER
public byte[] getSubjectDER()
Get the encoded form of the subjectName
- getSubjectDER in interface Certificate
- the DER encoded subjectName
getValidityNotAfter
public Date getValidityNotAfter()
Get the end of the validity window
- getValidityNotAfter in interface Certificate
- the end of the certificate validity period
getValidityNotBefore
public Date getValidityNotBefore()
Get the beginning of the validity window
- getValidityNotBefore in interface Certificate
- the beginning of the certificate validity period
verify
public boolean verify(PublicKey key)
throws CertificateException
Check a certificate signature using the specified public key
- true if the signature checks, otherwise false
verifyCertChain
public static Vector verifyCertChain(CertContext ctx,
Vector certs,
CertVerifyPolicyInt policy)
throws CertificateException
Verify a certificate chain.
ctx
- the cert contextcerts
- the certs to start with, ordered root first
- the canonicalized chain, with spurious certificates
trimmed from the front and the root (if necessary) prepended
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.