Class 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 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 class java.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 class java.security.cert.X509Certificate
        Throws:
        java.security.cert.CertificateExpiredException
        java.security.cert.CertificateNotYetValidException
      • getVersion

        public int getVersion()
        Deprecated.
        Specified by:
        getVersion in class java.security.cert.X509Certificate
      • getSerialNumber

        public java.math.BigInteger getSerialNumber()
        Deprecated.
        Specified by:
        getSerialNumber in class java.security.cert.X509Certificate
      • getIssuerDN

        public java.security.Principal getIssuerDN()
        Deprecated.
        Specified by:
        getIssuerDN in class java.security.cert.X509Certificate
      • getIssuerX500Principal

        public javax.security.auth.x500.X500Principal getIssuerX500Principal()
        Deprecated.
        Overrides:
        getIssuerX500Principal in class java.security.cert.X509Certificate
      • getSubjectDN

        public java.security.Principal getSubjectDN()
        Deprecated.
        Specified by:
        getSubjectDN in class java.security.cert.X509Certificate
      • getSubjectX500Principal

        public javax.security.auth.x500.X500Principal getSubjectX500Principal()
        Deprecated.
        Overrides:
        getSubjectX500Principal in class java.security.cert.X509Certificate
      • getNotBefore

        public java.util.Date getNotBefore()
        Deprecated.
        Specified by:
        getNotBefore in class java.security.cert.X509Certificate
      • getNotAfter

        public java.util.Date getNotAfter()
        Deprecated.
        Specified by:
        getNotAfter in class java.security.cert.X509Certificate
      • getTBSCertificate

        public byte[] getTBSCertificate()
                                 throws java.security.cert.CertificateEncodingException
        Deprecated.
        Specified by:
        getTBSCertificate in class java.security.cert.X509Certificate
        Throws:
        java.security.cert.CertificateEncodingException
      • getSignature

        public byte[] getSignature()
        Deprecated.
        Specified by:
        getSignature in class java.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 class java.security.cert.X509Certificate
      • getSigAlgOID

        public java.lang.String getSigAlgOID()
        Deprecated.
        return the object identifier for the signature.
        Specified by:
        getSigAlgOID in class java.security.cert.X509Certificate
      • getSigAlgParams

        public byte[] getSigAlgParams()
        Deprecated.
        return the signature parameters, or null if there aren't any.
        Specified by:
        getSigAlgParams in class java.security.cert.X509Certificate
      • getIssuerUniqueID

        public boolean[] getIssuerUniqueID()
        Deprecated.
        Specified by:
        getIssuerUniqueID in class java.security.cert.X509Certificate
      • getSubjectUniqueID

        public boolean[] getSubjectUniqueID()
        Deprecated.
        Specified by:
        getSubjectUniqueID in class java.security.cert.X509Certificate
      • getKeyUsage

        public boolean[] getKeyUsage()
        Deprecated.
        Specified by:
        getKeyUsage in class java.security.cert.X509Certificate
      • getExtendedKeyUsage

        public java.util.List getExtendedKeyUsage()
                                           throws java.security.cert.CertificateParsingException
        Deprecated.
        Overrides:
        getExtendedKeyUsage in class java.security.cert.X509Certificate
        Throws:
        java.security.cert.CertificateParsingException
      • getBasicConstraints

        public int getBasicConstraints()
        Deprecated.
        Specified by:
        getBasicConstraints in class java.security.cert.X509Certificate
      • getSubjectAlternativeNames

        public java.util.Collection getSubjectAlternativeNames()
                                                        throws java.security.cert.CertificateParsingException
        Deprecated.
        Overrides:
        getSubjectAlternativeNames in class java.security.cert.X509Certificate
        Throws:
        java.security.cert.CertificateParsingException
      • getIssuerAlternativeNames

        public java.util.Collection getIssuerAlternativeNames()
                                                       throws java.security.cert.CertificateParsingException
        Deprecated.
        Overrides:
        getIssuerAlternativeNames in class java.security.cert.X509Certificate
        Throws:
        java.security.cert.CertificateParsingException
      • getCriticalExtensionOIDs

        public java.util.Set getCriticalExtensionOIDs()
        Deprecated.
        Specified by:
        getCriticalExtensionOIDs in interface java.security.cert.X509Extension
      • getExtensionValue

        public byte[] getExtensionValue​(java.lang.String oid)
        Deprecated.
        Specified by:
        getExtensionValue in interface java.security.cert.X509Extension
      • getNonCriticalExtensionOIDs

        public java.util.Set getNonCriticalExtensionOIDs()
        Deprecated.
        Specified by:
        getNonCriticalExtensionOIDs in interface java.security.cert.X509Extension
      • hasUnsupportedCriticalExtension

        public boolean hasUnsupportedCriticalExtension()
        Deprecated.
        Specified by:
        hasUnsupportedCriticalExtension in interface java.security.cert.X509Extension
      • getPublicKey

        public java.security.PublicKey getPublicKey()
        Deprecated.
        Specified by:
        getPublicKey in class java.security.cert.Certificate
      • getEncoded

        public byte[] getEncoded()
                          throws java.security.cert.CertificateEncodingException
        Deprecated.
        Specified by:
        getEncoded in class java.security.cert.Certificate
        Throws:
        java.security.cert.CertificateEncodingException
      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.security.cert.Certificate
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.security.cert.Certificate
      • toString

        public java.lang.String toString()
        Deprecated.
        Specified by:
        toString in class java.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 class java.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 class java.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 class java.security.cert.X509Certificate
        Throws:
        java.security.cert.CertificateException
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException