public class X509CertificateObject extends X509Certificate implements PKCS12BagAttributeCarrier
Certificate.CertificateRep| Constructor and Description |
|---|
X509CertificateObject(Certificate c)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidity()
Deprecated.
|
void |
checkValidity(Date date)
Deprecated.
|
boolean |
equals(Object o)
Deprecated.
|
ASN1Encodable |
getBagAttribute(ASN1ObjectIdentifier oid)
Deprecated.
|
Enumeration |
getBagAttributeKeys()
Deprecated.
|
int |
getBasicConstraints()
Deprecated.
|
Set |
getCriticalExtensionOIDs()
Deprecated.
|
byte[] |
getEncoded()
Deprecated.
|
List |
getExtendedKeyUsage()
Deprecated.
|
byte[] |
getExtensionValue(String oid)
Deprecated.
|
Collection |
getIssuerAlternativeNames()
Deprecated.
|
Principal |
getIssuerDN()
Deprecated.
|
boolean[] |
getIssuerUniqueID()
Deprecated.
|
X500Principal |
getIssuerX500Principal()
Deprecated.
|
boolean[] |
getKeyUsage()
Deprecated.
|
Set |
getNonCriticalExtensionOIDs()
Deprecated.
|
Date |
getNotAfter()
Deprecated.
|
Date |
getNotBefore()
Deprecated.
|
PublicKey |
getPublicKey()
Deprecated.
|
BigInteger |
getSerialNumber()
Deprecated.
|
String |
getSigAlgName()
Deprecated.
return a more "meaningful" representation for the signature algorithm used in
the certficate.
|
String |
getSigAlgOID()
Deprecated.
return the object identifier for the signature.
|
byte[] |
getSigAlgParams()
Deprecated.
return the signature parameters, or null if there aren't any.
|
byte[] |
getSignature()
Deprecated.
|
Collection |
getSubjectAlternativeNames()
Deprecated.
|
Principal |
getSubjectDN()
Deprecated.
|
boolean[] |
getSubjectUniqueID()
Deprecated.
|
X500Principal |
getSubjectX500Principal()
Deprecated.
|
byte[] |
getTBSCertificate()
Deprecated.
|
int |
getVersion()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
hasUnsupportedCriticalExtension()
Deprecated.
|
void |
setBagAttribute(ASN1ObjectIdentifier oid,
ASN1Encodable attribute)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
verify(PublicKey key)
Deprecated.
|
void |
verify(PublicKey key,
Provider sigProvider)
Deprecated.
|
void |
verify(PublicKey key,
String sigProvider)
Deprecated.
|
getType, writeReplacepublic X509CertificateObject(Certificate c) throws CertificateParsingException
CertificateParsingExceptionpublic void checkValidity()
throws CertificateExpiredException,
CertificateNotYetValidException
checkValidity in class X509CertificateCertificateExpiredExceptionCertificateNotYetValidExceptionpublic void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
checkValidity in class X509CertificateCertificateExpiredExceptionCertificateNotYetValidExceptionpublic int getVersion()
getVersion in class X509Certificatepublic BigInteger getSerialNumber()
getSerialNumber in class X509Certificatepublic Principal getIssuerDN()
getIssuerDN in class X509Certificatepublic X500Principal getIssuerX500Principal()
getIssuerX500Principal in class X509Certificatepublic Principal getSubjectDN()
getSubjectDN in class X509Certificatepublic X500Principal getSubjectX500Principal()
getSubjectX500Principal in class X509Certificatepublic Date getNotBefore()
getNotBefore in class X509Certificatepublic Date getNotAfter()
getNotAfter in class X509Certificatepublic byte[] getTBSCertificate()
throws CertificateEncodingException
getTBSCertificate in class X509CertificateCertificateEncodingExceptionpublic byte[] getSignature()
getSignature in class X509Certificatepublic String getSigAlgName()
getSigAlgName in class X509Certificatepublic String getSigAlgOID()
getSigAlgOID in class X509Certificatepublic byte[] getSigAlgParams()
getSigAlgParams in class X509Certificatepublic boolean[] getIssuerUniqueID()
getIssuerUniqueID in class X509Certificatepublic boolean[] getSubjectUniqueID()
getSubjectUniqueID in class X509Certificatepublic boolean[] getKeyUsage()
getKeyUsage in class X509Certificatepublic List getExtendedKeyUsage() throws CertificateParsingException
getExtendedKeyUsage in class X509CertificateCertificateParsingExceptionpublic int getBasicConstraints()
getBasicConstraints in class X509Certificatepublic Collection getSubjectAlternativeNames() throws CertificateParsingException
getSubjectAlternativeNames in class X509CertificateCertificateParsingExceptionpublic Collection getIssuerAlternativeNames() throws CertificateParsingException
getIssuerAlternativeNames in class X509CertificateCertificateParsingExceptionpublic Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs in interface X509Extensionpublic byte[] getExtensionValue(String oid)
getExtensionValue in interface X509Extensionpublic Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs in interface X509Extensionpublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension in interface X509Extensionpublic PublicKey getPublicKey()
getPublicKey in class Certificatepublic byte[] getEncoded()
throws CertificateEncodingException
getEncoded in class CertificateCertificateEncodingExceptionpublic boolean equals(Object o)
equals in class Certificatepublic int hashCode()
hashCode in class Certificatepublic void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
setBagAttribute in interface PKCS12BagAttributeCarrierpublic ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
getBagAttribute in interface PKCS12BagAttributeCarrierpublic Enumeration getBagAttributeKeys()
getBagAttributeKeys in interface PKCS12BagAttributeCarrierpublic String toString()
toString in class Certificatepublic final void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify in class CertificateCertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureExceptionpublic final void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify in class CertificateCertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureExceptionpublic final void verify(PublicKey key, Provider sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
verify in class X509CertificateCertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionSignatureExceptionCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.