Bouncy Castle Cryptography Library 1.81

org.bouncycastle.jce.provider
Class X509CertificateObject

java.lang.Object
  extended byjava.security.cert.Certificate
      extended byjava.security.cert.X509Certificate
          extended byorg.bouncycastle.jce.provider.X509CertificateObject
All Implemented Interfaces:
PKCS12BagAttributeCarrier, java.io.Serializable, java.security.cert.X509Extension

Deprecated. Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.

public class X509CertificateObject
extends java.security.cert.X509Certificate
implements PKCS12BagAttributeCarrier

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.security.cert.Certificate
java.security.cert.Certificate.CertificateRep
 
Constructor Summary
X509CertificateObject(Certificate c)
          Deprecated.  
 
Method Summary
 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.  
 boolean hasFriendlyName()
          Deprecated.  
 int hashCode()
          Deprecated.  
 boolean hasUnsupportedCriticalExtension()
          Deprecated.  
 void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
          Deprecated.  
 void setFriendlyName(java.lang.String friendlyName)
          Deprecated.  
 java.lang.String toString()
          Deprecated.  
 void verify(java.security.PublicKey key)
          Deprecated.  
 void verify(java.security.PublicKey key, java.security.Provider sigProvider)
          Deprecated.  
 void verify(java.security.PublicKey key, java.lang.String sigProvider)
          Deprecated.  
 
Methods inherited from class java.security.cert.Certificate
getType, writeReplace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X509CertificateObject

public X509CertificateObject(Certificate c)
                      throws java.security.cert.CertificateParsingException
Deprecated. 
Method Detail

checkValidity

public void checkValidity()
                   throws java.security.cert.CertificateExpiredException,
                          java.security.cert.CertificateNotYetValidException
Deprecated. 
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. 
Throws:
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException

getVersion

public int getVersion()
Deprecated. 

getSerialNumber

public java.math.BigInteger getSerialNumber()
Deprecated. 

getIssuerDN

public java.security.Principal getIssuerDN()
Deprecated. 

getIssuerX500Principal

public javax.security.auth.x500.X500Principal getIssuerX500Principal()
Deprecated. 

getSubjectDN

public java.security.Principal getSubjectDN()
Deprecated. 

getSubjectX500Principal

public javax.security.auth.x500.X500Principal getSubjectX500Principal()
Deprecated. 

getNotBefore

public java.util.Date getNotBefore()
Deprecated. 

getNotAfter

public java.util.Date getNotAfter()
Deprecated. 

getTBSCertificate

public byte[] getTBSCertificate()
                         throws java.security.cert.CertificateEncodingException
Deprecated. 
Throws:
java.security.cert.CertificateEncodingException

getSignature

public byte[] getSignature()
Deprecated. 

getSigAlgName

public java.lang.String getSigAlgName()
Deprecated. 
return a more "meaningful" representation for the signature algorithm used in the certficate.


getSigAlgOID

public java.lang.String getSigAlgOID()
Deprecated. 
return the object identifier for the signature.


getSigAlgParams

public byte[] getSigAlgParams()
Deprecated. 
return the signature parameters, or null if there aren't any.


getIssuerUniqueID

public boolean[] getIssuerUniqueID()
Deprecated. 

getSubjectUniqueID

public boolean[] getSubjectUniqueID()
Deprecated. 

getKeyUsage

public boolean[] getKeyUsage()
Deprecated. 

getExtendedKeyUsage

public java.util.List getExtendedKeyUsage()
                                   throws java.security.cert.CertificateParsingException
Deprecated. 
Throws:
java.security.cert.CertificateParsingException

getBasicConstraints

public int getBasicConstraints()
Deprecated. 

getSubjectAlternativeNames

public java.util.Collection getSubjectAlternativeNames()
                                                throws java.security.cert.CertificateParsingException
Deprecated. 
Throws:
java.security.cert.CertificateParsingException

getIssuerAlternativeNames

public java.util.Collection getIssuerAlternativeNames()
                                               throws java.security.cert.CertificateParsingException
Deprecated. 
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. 

getEncoded

public byte[] getEncoded()
                  throws java.security.cert.CertificateEncodingException
Deprecated. 
Throws:
java.security.cert.CertificateEncodingException

equals

public boolean equals(java.lang.Object o)
Deprecated. 

hashCode

public int hashCode()
Deprecated. 

setBagAttribute

public void setBagAttribute(ASN1ObjectIdentifier oid,
                            ASN1Encodable attribute)
Deprecated. 
Specified by:
setBagAttribute in interface PKCS12BagAttributeCarrier

getBagAttribute

public ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
Deprecated. 
Specified by:
getBagAttribute in interface PKCS12BagAttributeCarrier

getBagAttributeKeys

public java.util.Enumeration getBagAttributeKeys()
Deprecated. 
Specified by:
getBagAttributeKeys in interface PKCS12BagAttributeCarrier

hasFriendlyName

public boolean hasFriendlyName()
Deprecated. 
Specified by:
hasFriendlyName in interface PKCS12BagAttributeCarrier

setFriendlyName

public void setFriendlyName(java.lang.String friendlyName)
Deprecated. 
Specified by:
setFriendlyName in interface PKCS12BagAttributeCarrier

toString

public java.lang.String toString()
Deprecated. 

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. 
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. 
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. 
Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.SignatureException

Bouncy Castle Cryptography Library 1.81