Bouncy Castle Cryptography Library 1.77.0

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:
PKCS12BagAttributeCarrier, java.io.Serializable, java.security.cert.X509Extension

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

See Also:
Serialized Form

Inner classes inherited from class java.security.cert.Certificate
java.security.cert.Certificate.CertificateRep
 
Constructor Summary
X509CertificateObject(Certificate c)
           
 
Method Summary
 void checkValidity()
           
 void checkValidity(java.util.Date date)
           
 boolean equals(java.lang.Object o)
           
 ASN1Encodable getBagAttribute(ASN1ObjectIdentifier oid)
           
 java.util.Enumeration getBagAttributeKeys()
           
 int getBasicConstraints()
           
 java.util.Set getCriticalExtensionOIDs()
           
 byte[] getEncoded()
           
 java.util.List getExtendedKeyUsage()
           
 byte[] getExtensionValue(java.lang.String oid)
           
 java.util.Collection getIssuerAlternativeNames()
           
 java.security.Principal getIssuerDN()
           
 boolean[] getIssuerUniqueID()
           
 boolean[] getKeyUsage()
           
 java.util.Set getNonCriticalExtensionOIDs()
           
 java.util.Date getNotAfter()
           
 java.util.Date getNotBefore()
           
 java.security.PublicKey getPublicKey()
           
 java.math.BigInteger getSerialNumber()
           
 java.lang.String getSigAlgName()
          return a more "meaningful" representation for the signature algorithm used in the certficate.
 java.lang.String getSigAlgOID()
          return the object identifier for the signature.
 byte[] getSigAlgParams()
          return the signature parameters, or null if there aren't any.
 byte[] getSignature()
           
 java.util.Collection getSubjectAlternativeNames()
           
 java.security.Principal getSubjectDN()
           
 boolean[] getSubjectUniqueID()
           
 byte[] getTBSCertificate()
           
 int getVersion()
           
 int hashCode()
           
 boolean hasUnsupportedCriticalExtension()
           
 void setBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute)
           
 java.lang.String toString()
           
 void verify(java.security.PublicKey key)
           
 void verify(java.security.PublicKey key, java.lang.String sigProvider)
           
 
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
Method Detail

checkValidity

public void checkValidity()
                   throws java.security.cert.CertificateExpiredException,
                          java.security.cert.CertificateNotYetValidException
Overrides:
checkValidity in class java.security.cert.X509Certificate

checkValidity

public void checkValidity(java.util.Date date)
                   throws java.security.cert.CertificateExpiredException,
                          java.security.cert.CertificateNotYetValidException
Overrides:
checkValidity in class java.security.cert.X509Certificate

getVersion

public int getVersion()
Overrides:
getVersion in class java.security.cert.X509Certificate

getSerialNumber

public java.math.BigInteger getSerialNumber()
Overrides:
getSerialNumber in class java.security.cert.X509Certificate

getIssuerDN

public java.security.Principal getIssuerDN()
Overrides:
getIssuerDN in class java.security.cert.X509Certificate

getSubjectDN

public java.security.Principal getSubjectDN()
Overrides:
getSubjectDN in class java.security.cert.X509Certificate

getNotBefore

public java.util.Date getNotBefore()
Overrides:
getNotBefore in class java.security.cert.X509Certificate

getNotAfter

public java.util.Date getNotAfter()
Overrides:
getNotAfter in class java.security.cert.X509Certificate

getTBSCertificate

public byte[] getTBSCertificate()
                         throws java.security.cert.CertificateEncodingException
Overrides:
getTBSCertificate in class java.security.cert.X509Certificate

getSignature

public byte[] getSignature()
Overrides:
getSignature in class java.security.cert.X509Certificate

getSigAlgName

public java.lang.String getSigAlgName()
return a more "meaningful" representation for the signature algorithm used in the certficate.
Overrides:
getSigAlgName in class java.security.cert.X509Certificate

getSigAlgOID

public java.lang.String getSigAlgOID()
return the object identifier for the signature.
Overrides:
getSigAlgOID in class java.security.cert.X509Certificate

getSigAlgParams

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

getIssuerUniqueID

public boolean[] getIssuerUniqueID()
Overrides:
getIssuerUniqueID in class java.security.cert.X509Certificate

getSubjectUniqueID

public boolean[] getSubjectUniqueID()
Overrides:
getSubjectUniqueID in class java.security.cert.X509Certificate

getKeyUsage

public boolean[] getKeyUsage()
Overrides:
getKeyUsage in class java.security.cert.X509Certificate

getExtendedKeyUsage

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

getBasicConstraints

public int getBasicConstraints()
Overrides:
getBasicConstraints in class java.security.cert.X509Certificate

getSubjectAlternativeNames

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

getIssuerAlternativeNames

public java.util.Collection getIssuerAlternativeNames()
                                               throws java.security.cert.CertificateParsingException

getCriticalExtensionOIDs

public java.util.Set getCriticalExtensionOIDs()
Overrides:
getCriticalExtensionOIDs in class java.security.cert.X509Certificate

getExtensionValue

public byte[] getExtensionValue(java.lang.String oid)
Overrides:
getExtensionValue in class java.security.cert.X509Certificate

getNonCriticalExtensionOIDs

public java.util.Set getNonCriticalExtensionOIDs()
Overrides:
getNonCriticalExtensionOIDs in class java.security.cert.X509Certificate

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()
Overrides:
hasUnsupportedCriticalExtension in class java.security.cert.X509Certificate

getPublicKey

public java.security.PublicKey getPublicKey()
Overrides:
getPublicKey in class java.security.cert.Certificate

getEncoded

public byte[] getEncoded()
                  throws java.security.cert.CertificateEncodingException
Overrides:
getEncoded in class java.security.cert.Certificate

equals

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

hashCode

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

setBagAttribute

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

getBagAttribute

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

getBagAttributeKeys

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

toString

public java.lang.String toString()
Overrides:
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
Overrides:
verify in class java.security.cert.Certificate

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
Overrides:
verify in class java.security.cert.Certificate

Bouncy Castle Cryptography Library 1.77.0