|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.security.cert.Certificate
|
+--javax.security.cert.X509Certificate
|
+--com.ibm.security.cert.X509V1CertImpl
The X509V1CertImpl class is used as a conversion wrapper around sun.security.x509.X509Cert certificates when running under JDK1.1.x.
| Constructor Summary | |
X509V1CertImpl()
Default constructor. |
|
X509V1CertImpl(byte[] certData)
Unmarshals a certificate from its encoded form, parsing the encoded bytes. |
|
X509V1CertImpl(java.io.InputStream in)
unmarshals an X.509 certificate from an input stream. |
|
| Method Summary | |
void |
checkValidity()
Checks that the certificate is currently valid, i.e. |
void |
checkValidity(java.util.Date date)
Checks that the specified date is within the certificate's validity period, or basically if the certificate would be valid at the specified date/time. |
byte[] |
getEncoded()
Returns the encoded form of this certificate. |
java.security.Principal |
getIssuerDN()
Gets the issuer distinguished name from the certificate. |
java.util.Date |
getNotAfter()
Gets the notAfter date from the validity period of the certificate. |
java.util.Date |
getNotBefore()
Gets the notBefore date from the validity period of the certificate. |
java.security.PublicKey |
getPublicKey()
Gets the publickey from this certificate. |
java.math.BigInteger |
getSerialNumber()
Gets the serial number from the certificate. |
java.lang.String |
getSigAlgName()
Gets the signature algorithm name for the certificate signature algorithm. |
java.lang.String |
getSigAlgOID()
Gets the signature algorithm OID string from the certificate. |
byte[] |
getSigAlgParams()
Gets the DER encoded signature algorithm parameters from this certificate's signature algorithm. |
java.security.Principal |
getSubjectDN()
Gets the subject distinguished name from the certificate. |
int |
getVersion()
Gets the version (version number) value from the certificate. |
java.security.cert.X509Certificate |
getX509Certificate()
|
java.lang.String |
toString()
Returns a printable representation of the certificate. |
void |
verify(java.security.PublicKey key)
Throws an exception if the certificate was not signed using the verification key provided. |
void |
verify(java.security.PublicKey key,
java.lang.String sigProvider)
Throws an exception if the certificate was not signed using the verification key provided. |
| Methods inherited from class javax.security.cert.X509Certificate |
getInstance,
getInstance |
| Methods inherited from class javax.security.cert.Certificate |
equals,
hashCode |
| Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public X509V1CertImpl()
public X509V1CertImpl(byte[] certData)
throws CertificateException
certData - the encoded bytes, with no trailing padding.
public X509V1CertImpl(java.io.InputStream in)
throws CertificateException
in - an input stream holding at least one certificate| Method Detail |
public byte[] getEncoded()
throws CertificateEncodingException
public void verify(java.security.PublicKey key)
throws CertificateException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.NoSuchProviderException,
java.security.SignatureException
key - the public key used for verification.
public void verify(java.security.PublicKey key,
java.lang.String sigProvider)
throws CertificateException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.NoSuchProviderException,
java.security.SignatureException
key - the public key used for verification.sigProvider - the name of the provider.
public void checkValidity()
throws CertificateExpiredException,
CertificateNotYetValidException
public void checkValidity(java.util.Date date)
throws CertificateExpiredException,
CertificateNotYetValidException
date - the Date to check against to see if this certificate
is valid at that date/time.public java.lang.String toString()
public java.security.PublicKey getPublicKey()
public int getVersion()
version (version number) value from the certificate.
The ASN.1 definition for this is:
version [0] EXPLICIT Version DEFAULT v1Version ::= INTEGER { v1(0), v2(1), v3(2) }
public java.math.BigInteger getSerialNumber()
public java.security.Principal getSubjectDN()
public java.security.Principal getIssuerDN()
public java.util.Date getNotBefore()
public java.util.Date getNotAfter()
public java.lang.String getSigAlgName()
public java.lang.String getSigAlgOID()
public byte[] getSigAlgParams()
public java.security.cert.X509Certificate getX509Certificate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||