org.bouncycastle.jce.provider

Class X509CertificateObject

Implemented Interfaces:
PKCS12BagAttributeCarrier

public class X509CertificateObject
extends X509Certificate
implements PKCS12BagAttributeCarrier

Constructor Summary

X509CertificateObject(X509CertificateStructure c)

Method Summary

void
checkValidity()
void
checkValidity(Date date)
boolean
equals(Object o)
DEREncodable
getBagAttribute(DERObjectIdentifier oid)
Enumeration
getBagAttributeKeys()
int
getBasicConstraints()
Set
getCriticalExtensionOIDs()
byte[]
getEncoded()
List
getExtendedKeyUsage()
byte[]
getExtensionValue(String oid)
Principal
getIssuerDN()
boolean[]
getIssuerUniqueID()
X500Principal
getIssuerX500Principal()
boolean[]
getKeyUsage()
Set
getNonCriticalExtensionOIDs()
Date
getNotAfter()
Date
getNotBefore()
PublicKey
getPublicKey()
BigInteger
getSerialNumber()
String
getSigAlgName()
return a more "meaningful" representation for the signature algorithm used in the certficate.
String
getSigAlgOID()
return the object identifier for the signature.
byte[]
getSigAlgParams()
return the signature parameters, or null if there aren't any.
byte[]
getSignature()
Principal
getSubjectDN()
boolean[]
getSubjectUniqueID()
X500Principal
getSubjectX500Principal()
byte[]
getTBSCertificate()
int
getVersion()
boolean
hasUnsupportedCriticalExtension()
int
hashCode()
void
setBagAttribute(DERObjectIdentifier oid, DEREncodable attribute)
String
toString()
void
verify(PublicKey key)
void
verify(PublicKey key, String sigProvider)

Constructor Details

X509CertificateObject

public X509CertificateObject(X509CertificateStructure c)

Method Details

checkValidity

public void checkValidity()
            throws CertificateExpiredException,
                   CertificateNotYetValidException

checkValidity

public void checkValidity(Date date)
            throws CertificateExpiredException,
                   CertificateNotYetValidException

equals

public boolean equals(Object o)

getBagAttribute

public DEREncodable getBagAttribute(DERObjectIdentifier oid)
Specified by:
getBagAttribute in interface PKCS12BagAttributeCarrier

getBagAttributeKeys

public Enumeration getBagAttributeKeys()
Specified by:
getBagAttributeKeys in interface PKCS12BagAttributeCarrier

getBasicConstraints

public int getBasicConstraints()

getCriticalExtensionOIDs

public Set getCriticalExtensionOIDs()

getEncoded

public byte[] getEncoded()
            throws CertificateEncodingException

getExtendedKeyUsage

public List getExtendedKeyUsage()
            throws CertificateParsingException

getExtensionValue

public byte[] getExtensionValue(String oid)

getIssuerDN

public Principal getIssuerDN()

getIssuerUniqueID

public boolean[] getIssuerUniqueID()

getIssuerX500Principal

public X500Principal getIssuerX500Principal()

getKeyUsage

public boolean[] getKeyUsage()

getNonCriticalExtensionOIDs

public Set getNonCriticalExtensionOIDs()

getNotAfter

public Date getNotAfter()

getNotBefore

public Date getNotBefore()

getPublicKey

public PublicKey getPublicKey()

getSerialNumber

public BigInteger getSerialNumber()

getSigAlgName

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

getSigAlgOID

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

getSigAlgParams

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

getSignature

public byte[] getSignature()

getSubjectDN

public Principal getSubjectDN()

getSubjectUniqueID

public boolean[] getSubjectUniqueID()

getSubjectX500Principal

public X500Principal getSubjectX500Principal()

getTBSCertificate

public byte[] getTBSCertificate()
            throws CertificateEncodingException

getVersion

public int getVersion()

hasUnsupportedCriticalExtension

public boolean hasUnsupportedCriticalExtension()

hashCode

public int hashCode()

setBagAttribute

public void setBagAttribute(DERObjectIdentifier oid,
                            DEREncodable attribute)
Specified by:
setBagAttribute in interface PKCS12BagAttributeCarrier

toString

public String toString()

verify

public final void verify(PublicKey key)
            throws CertificateException,
                   NoSuchAlgorithmException,
                   InvalidKeyException,
                   NoSuchProviderException,
                   SignatureException

verify

public final void verify(PublicKey key,
                         String sigProvider)
            throws CertificateException,
                   NoSuchAlgorithmException,
                   InvalidKeyException,
                   NoSuchProviderException,
                   SignatureException