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:
java.io.Serializable
,java.security.cert.X509Extension
,PKCS12BagAttributeCarrier
public class X509CertificateObject extends java.security.cert.X509Certificate implements PKCS12BagAttributeCarrier
Deprecated.Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.- See Also:
- Serialized Form
-
-
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(java.util.Date date)
Deprecated.boolean
equals(java.lang.Object o)
Deprecated.ASN1Encodable
getBagAttribute(ASN1ObjectIdentifier oid)
Deprecated.java.util.Enumeration
getBagAttributeKeys()
Deprecated.int
getBasicConstraints()
Deprecated.java.util.Set
getCriticalExtensionOIDs()
Deprecated.byte[]
getEncoded()
Deprecated.java.util.List
getExtendedKeyUsage()
Deprecated.byte[]
getExtensionValue(java.lang.String oid)
Deprecated.java.util.Collection
getIssuerAlternativeNames()
Deprecated.java.security.Principal
getIssuerDN()
Deprecated.boolean[]
getIssuerUniqueID()
Deprecated.javax.security.auth.x500.X500Principal
getIssuerX500Principal()
Deprecated.boolean[]
getKeyUsage()
Deprecated.java.util.Set
getNonCriticalExtensionOIDs()
Deprecated.java.util.Date
getNotAfter()
Deprecated.java.util.Date
getNotBefore()
Deprecated.java.security.PublicKey
getPublicKey()
Deprecated.java.math.BigInteger
getSerialNumber()
Deprecated.java.lang.String
getSigAlgName()
Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.java.lang.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.java.util.Collection
getSubjectAlternativeNames()
Deprecated.java.security.Principal
getSubjectDN()
Deprecated.boolean[]
getSubjectUniqueID()
Deprecated.javax.security.auth.x500.X500Principal
getSubjectX500Principal()
Deprecated.byte[]
getTBSCertificate()
Deprecated.int
getVersion()
Deprecated.int
hashCode()
Deprecated.boolean
hasUnsupportedCriticalExtension()
Deprecated.void
setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
Deprecated.java.lang.String
toString()
Deprecated.void
verify(java.security.PublicKey key)
Deprecated.void
verify(java.security.PublicKey key, java.lang.String sigProvider)
Deprecated.void
verify(java.security.PublicKey key, java.security.Provider sigProvider)
Deprecated.
-
-
-
Constructor Detail
-
X509CertificateObject
public X509CertificateObject(Certificate c) throws java.security.cert.CertificateParsingException
Deprecated.- Throws:
java.security.cert.CertificateParsingException
-
-
Method Detail
-
checkValidity
public void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
Deprecated.- Specified by:
checkValidity
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
-
checkValidity
public void checkValidity(java.util.Date date) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
Deprecated.- Specified by:
checkValidity
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
-
getVersion
public int getVersion()
Deprecated.- Specified by:
getVersion
in classjava.security.cert.X509Certificate
-
getSerialNumber
public java.math.BigInteger getSerialNumber()
Deprecated.- Specified by:
getSerialNumber
in classjava.security.cert.X509Certificate
-
getIssuerDN
public java.security.Principal getIssuerDN()
Deprecated.- Specified by:
getIssuerDN
in classjava.security.cert.X509Certificate
-
getIssuerX500Principal
public javax.security.auth.x500.X500Principal getIssuerX500Principal()
Deprecated.- Overrides:
getIssuerX500Principal
in classjava.security.cert.X509Certificate
-
getSubjectDN
public java.security.Principal getSubjectDN()
Deprecated.- Specified by:
getSubjectDN
in classjava.security.cert.X509Certificate
-
getSubjectX500Principal
public javax.security.auth.x500.X500Principal getSubjectX500Principal()
Deprecated.- Overrides:
getSubjectX500Principal
in classjava.security.cert.X509Certificate
-
getNotBefore
public java.util.Date getNotBefore()
Deprecated.- Specified by:
getNotBefore
in classjava.security.cert.X509Certificate
-
getNotAfter
public java.util.Date getNotAfter()
Deprecated.- Specified by:
getNotAfter
in classjava.security.cert.X509Certificate
-
getTBSCertificate
public byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException
Deprecated.- Specified by:
getTBSCertificate
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateEncodingException
-
getSignature
public byte[] getSignature()
Deprecated.- Specified by:
getSignature
in classjava.security.cert.X509Certificate
-
getSigAlgName
public java.lang.String getSigAlgName()
Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.- Specified by:
getSigAlgName
in classjava.security.cert.X509Certificate
-
getSigAlgOID
public java.lang.String getSigAlgOID()
Deprecated.return the object identifier for the signature.- Specified by:
getSigAlgOID
in classjava.security.cert.X509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()
Deprecated.return the signature parameters, or null if there aren't any.- Specified by:
getSigAlgParams
in classjava.security.cert.X509Certificate
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()
Deprecated.- Specified by:
getIssuerUniqueID
in classjava.security.cert.X509Certificate
-
getSubjectUniqueID
public boolean[] getSubjectUniqueID()
Deprecated.- Specified by:
getSubjectUniqueID
in classjava.security.cert.X509Certificate
-
getKeyUsage
public boolean[] getKeyUsage()
Deprecated.- Specified by:
getKeyUsage
in classjava.security.cert.X509Certificate
-
getExtendedKeyUsage
public java.util.List getExtendedKeyUsage() throws java.security.cert.CertificateParsingException
Deprecated.- Overrides:
getExtendedKeyUsage
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateParsingException
-
getBasicConstraints
public int getBasicConstraints()
Deprecated.- Specified by:
getBasicConstraints
in classjava.security.cert.X509Certificate
-
getSubjectAlternativeNames
public java.util.Collection getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException
Deprecated.- Overrides:
getSubjectAlternativeNames
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateParsingException
-
getIssuerAlternativeNames
public java.util.Collection getIssuerAlternativeNames() throws java.security.cert.CertificateParsingException
Deprecated.- Overrides:
getIssuerAlternativeNames
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateParsingException
-
getCriticalExtensionOIDs
public java.util.Set getCriticalExtensionOIDs()
Deprecated.- Specified by:
getCriticalExtensionOIDs
in interfacejava.security.cert.X509Extension
-
getExtensionValue
public byte[] getExtensionValue(java.lang.String oid)
Deprecated.- Specified by:
getExtensionValue
in interfacejava.security.cert.X509Extension
-
getNonCriticalExtensionOIDs
public java.util.Set getNonCriticalExtensionOIDs()
Deprecated.- Specified by:
getNonCriticalExtensionOIDs
in interfacejava.security.cert.X509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
Deprecated.- Specified by:
hasUnsupportedCriticalExtension
in interfacejava.security.cert.X509Extension
-
getPublicKey
public java.security.PublicKey getPublicKey()
Deprecated.- Specified by:
getPublicKey
in classjava.security.cert.Certificate
-
getEncoded
public byte[] getEncoded() throws java.security.cert.CertificateEncodingException
Deprecated.- Specified by:
getEncoded
in classjava.security.cert.Certificate
- Throws:
java.security.cert.CertificateEncodingException
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.security.cert.Certificate
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.security.cert.Certificate
-
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 java.util.Enumeration getBagAttributeKeys()
Deprecated.- Specified by:
getBagAttributeKeys
in interfacePKCS12BagAttributeCarrier
-
toString
public java.lang.String toString()
Deprecated.- Specified by:
toString
in classjava.security.cert.Certificate
-
verify
public final void verify(java.security.PublicKey key) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
Deprecated.- Specified by:
verify
in classjava.security.cert.Certificate
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
verify
public final void verify(java.security.PublicKey key, java.lang.String sigProvider) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
Deprecated.- Specified by:
verify
in classjava.security.cert.Certificate
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
verify
public final void verify(java.security.PublicKey key, java.security.Provider sigProvider) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.SignatureException
Deprecated.- Overrides:
verify
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.SignatureException
-
-