Package org.bouncycastle.jce.provider
Class X509CertificateObject
java.lang.Object
java.security.cert.Certificate
java.security.cert.X509Certificate
org.bouncycastle.jce.provider.X509CertificateObject
- All Implemented Interfaces:
Serializable
,X509Extension
,PKCS12BagAttributeCarrier
Deprecated.
Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.security.cert.Certificate
Certificate.CertificateRep
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
checkValidity
(Date date) Deprecated.boolean
Deprecated.Deprecated.Deprecated.int
Deprecated.Deprecated.byte[]
Deprecated.Deprecated.byte[]
getExtensionValue
(String oid) Deprecated.Deprecated.Deprecated.boolean[]
Deprecated.Deprecated.boolean[]
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.Deprecated.return the object identifier for the signature.byte[]
Deprecated.return the signature parameters, or null if there aren't any.byte[]
Deprecated.Deprecated.Deprecated.boolean[]
Deprecated.Deprecated.byte[]
Deprecated.int
Deprecated.int
hashCode()
Deprecated.boolean
Deprecated.void
setBagAttribute
(ASN1ObjectIdentifier oid, ASN1Encodable attribute) Deprecated.toString()
Deprecated.final void
Deprecated.final void
Deprecated.final void
Deprecated.Methods inherited from class java.security.cert.Certificate
getType, writeReplace
-
Constructor Details
-
X509CertificateObject
Deprecated.- Throws:
CertificateParsingException
-
-
Method Details
-
checkValidity
Deprecated.- Specified by:
checkValidity
in classX509Certificate
- Throws:
CertificateExpiredException
CertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException Deprecated.- Specified by:
checkValidity
in classX509Certificate
- Throws:
CertificateExpiredException
CertificateNotYetValidException
-
getVersion
public int getVersion()Deprecated.- Specified by:
getVersion
in classX509Certificate
-
getSerialNumber
Deprecated.- Specified by:
getSerialNumber
in classX509Certificate
-
getIssuerDN
Deprecated.- Specified by:
getIssuerDN
in classX509Certificate
-
getIssuerX500Principal
Deprecated.- Overrides:
getIssuerX500Principal
in classX509Certificate
-
getSubjectDN
Deprecated.- Specified by:
getSubjectDN
in classX509Certificate
-
getSubjectX500Principal
Deprecated.- Overrides:
getSubjectX500Principal
in classX509Certificate
-
getNotBefore
Deprecated.- Specified by:
getNotBefore
in classX509Certificate
-
getNotAfter
Deprecated.- Specified by:
getNotAfter
in classX509Certificate
-
getTBSCertificate
Deprecated.- Specified by:
getTBSCertificate
in classX509Certificate
- Throws:
CertificateEncodingException
-
getSignature
public byte[] getSignature()Deprecated.- Specified by:
getSignature
in classX509Certificate
-
getSigAlgName
Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.- Specified by:
getSigAlgName
in classX509Certificate
-
getSigAlgOID
Deprecated.return the object identifier for the signature.- Specified by:
getSigAlgOID
in classX509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()Deprecated.return the signature parameters, or null if there aren't any.- Specified by:
getSigAlgParams
in classX509Certificate
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()Deprecated.- Specified by:
getIssuerUniqueID
in classX509Certificate
-
getSubjectUniqueID
public boolean[] getSubjectUniqueID()Deprecated.- Specified by:
getSubjectUniqueID
in classX509Certificate
-
getKeyUsage
public boolean[] getKeyUsage()Deprecated.- Specified by:
getKeyUsage
in classX509Certificate
-
getExtendedKeyUsage
Deprecated.- Overrides:
getExtendedKeyUsage
in classX509Certificate
- Throws:
CertificateParsingException
-
getBasicConstraints
public int getBasicConstraints()Deprecated.- Specified by:
getBasicConstraints
in classX509Certificate
-
getSubjectAlternativeNames
Deprecated.- Overrides:
getSubjectAlternativeNames
in classX509Certificate
- Throws:
CertificateParsingException
-
getIssuerAlternativeNames
Deprecated.- Overrides:
getIssuerAlternativeNames
in classX509Certificate
- Throws:
CertificateParsingException
-
getCriticalExtensionOIDs
Deprecated.- Specified by:
getCriticalExtensionOIDs
in interfaceX509Extension
-
getExtensionValue
Deprecated.- Specified by:
getExtensionValue
in interfaceX509Extension
-
getNonCriticalExtensionOIDs
Deprecated.- Specified by:
getNonCriticalExtensionOIDs
in interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()Deprecated.- Specified by:
hasUnsupportedCriticalExtension
in interfaceX509Extension
-
getPublicKey
Deprecated.- Specified by:
getPublicKey
in classCertificate
-
getEncoded
Deprecated.- Specified by:
getEncoded
in classCertificate
- Throws:
CertificateEncodingException
-
equals
Deprecated.- Overrides:
equals
in classCertificate
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCode
in classCertificate
-
setBagAttribute
Deprecated.- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
Deprecated.- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
Deprecated.- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-
toString
Deprecated.- Specified by:
toString
in classCertificate
-
verify
public final void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated.- Specified by:
verify
in classCertificate
- Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
verify
public final void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated.- Specified by:
verify
in classCertificate
- Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
-
verify
public final void verify(PublicKey key, Provider sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException Deprecated.- Overrides:
verify
in classX509Certificate
- Throws:
CertificateException
NoSuchAlgorithmException
InvalidKeyException
SignatureException
-