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
public class X509CertificateObject extends X509Certificate implements PKCS12BagAttributeCarrier
Deprecated.Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.security.cert.Certificate
Certificate.CertificateRep
-
-
Constructor Summary
Constructors Constructor Description X509CertificateObject(Certificate c)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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, String sigProvider)
Deprecated.void
verify(PublicKey key, Provider sigProvider)
Deprecated.-
Methods inherited from class java.security.cert.Certificate
getType, writeReplace
-
-
-
-
Constructor Detail
-
X509CertificateObject
public X509CertificateObject(Certificate c) throws CertificateParsingException
Deprecated.- Throws:
CertificateParsingException
-
-
Method Detail
-
checkValidity
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
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
public BigInteger getSerialNumber()
Deprecated.- Specified by:
getSerialNumber
in classX509Certificate
-
getIssuerDN
public Principal getIssuerDN()
Deprecated.- Specified by:
getIssuerDN
in classX509Certificate
-
getIssuerX500Principal
public X500Principal getIssuerX500Principal()
Deprecated.- Overrides:
getIssuerX500Principal
in classX509Certificate
-
getSubjectDN
public Principal getSubjectDN()
Deprecated.- Specified by:
getSubjectDN
in classX509Certificate
-
getSubjectX500Principal
public X500Principal getSubjectX500Principal()
Deprecated.- Overrides:
getSubjectX500Principal
in classX509Certificate
-
getNotBefore
public Date getNotBefore()
Deprecated.- Specified by:
getNotBefore
in classX509Certificate
-
getNotAfter
public Date getNotAfter()
Deprecated.- Specified by:
getNotAfter
in classX509Certificate
-
getTBSCertificate
public byte[] getTBSCertificate() throws CertificateEncodingException
Deprecated.- Specified by:
getTBSCertificate
in classX509Certificate
- Throws:
CertificateEncodingException
-
getSignature
public byte[] getSignature()
Deprecated.- Specified by:
getSignature
in classX509Certificate
-
getSigAlgName
public String getSigAlgName()
Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.- Specified by:
getSigAlgName
in classX509Certificate
-
getSigAlgOID
public String 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
public List getExtendedKeyUsage() throws CertificateParsingException
Deprecated.- Overrides:
getExtendedKeyUsage
in classX509Certificate
- Throws:
CertificateParsingException
-
getBasicConstraints
public int getBasicConstraints()
Deprecated.- Specified by:
getBasicConstraints
in classX509Certificate
-
getSubjectAlternativeNames
public Collection getSubjectAlternativeNames() throws CertificateParsingException
Deprecated.- Overrides:
getSubjectAlternativeNames
in classX509Certificate
- Throws:
CertificateParsingException
-
getIssuerAlternativeNames
public Collection getIssuerAlternativeNames() throws CertificateParsingException
Deprecated.- Overrides:
getIssuerAlternativeNames
in classX509Certificate
- Throws:
CertificateParsingException
-
getCriticalExtensionOIDs
public Set getCriticalExtensionOIDs()
Deprecated.- Specified by:
getCriticalExtensionOIDs
in interfaceX509Extension
-
getExtensionValue
public byte[] getExtensionValue(String oid)
Deprecated.- Specified by:
getExtensionValue
in interfaceX509Extension
-
getNonCriticalExtensionOIDs
public Set getNonCriticalExtensionOIDs()
Deprecated.- Specified by:
getNonCriticalExtensionOIDs
in interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Deprecated.- Specified by:
hasUnsupportedCriticalExtension
in interfaceX509Extension
-
getPublicKey
public PublicKey getPublicKey()
Deprecated.- Specified by:
getPublicKey
in classCertificate
-
getEncoded
public byte[] getEncoded() throws CertificateEncodingException
Deprecated.- Specified by:
getEncoded
in classCertificate
- Throws:
CertificateEncodingException
-
equals
public boolean equals(Object o)
Deprecated.- Overrides:
equals
in classCertificate
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classCertificate
-
setBagAttribute
public void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
Deprecated.- Specified by:
setBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttribute
public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
Deprecated.- Specified by:
getBagAttribute
in interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
public Enumeration getBagAttributeKeys()
Deprecated.- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-
toString
public String 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
-
-