|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.cert.X509CertificateHolder
Holding class for an X.509 Certificate structure.
Constructor Summary | |
X509CertificateHolder(byte[] certEncoding)
Create a X509CertificateHolder from the passed in bytes. |
|
X509CertificateHolder(org.bouncycastle.asn1.x509.Certificate x509Certificate)
Create a X509CertificateHolder from the passed in ASN.1 structure. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.util.Set |
getCriticalExtensionOIDs()
Returns a set of ASN1ObjectIdentifier objects representing the OIDs of the critical extensions contained in this holder's certificate. |
byte[] |
getEncoded()
Return the ASN.1 encoding of this holder's certificate. |
org.bouncycastle.asn1.x509.Extension |
getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
Look up the extension associated with the passed in OID. |
java.util.List |
getExtensionOIDs()
Returns a list of ASN1ObjectIdentifier objects representing the OIDs of the extensions contained in this holder's certificate. |
org.bouncycastle.asn1.x509.Extensions |
getExtensions()
Return the extensions block associated with this certificate if there is one. |
org.bouncycastle.asn1.x500.X500Name |
getIssuer()
Return the issuer of this certificate. |
java.util.Set |
getNonCriticalExtensionOIDs()
Returns a set of ASN1ObjectIdentifier objects representing the OIDs of the non-critical extensions contained in this holder's certificate. |
java.util.Date |
getNotAfter()
Return the date after which this certificate is not valid. |
java.util.Date |
getNotBefore()
Return the date before which this certificate is not valid. |
java.math.BigInteger |
getSerialNumber()
Return the serial number of this attribute certificate. |
byte[] |
getSignature()
Return the bytes making up the signature associated with this certificate. |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSignatureAlgorithm()
Return the details of the signature algorithm used to create this attribute certificate. |
org.bouncycastle.asn1.x500.X500Name |
getSubject()
Return the subject this certificate is for. |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getSubjectPublicKeyInfo()
Return the SubjectPublicKeyInfo describing the public key this certificate is carrying. |
int |
getVersion()
Deprecated. use getVersionNumber |
int |
getVersionNumber()
|
boolean |
hasExtensions()
Return whether or not the holder's certificate contains extensions. |
int |
hashCode()
|
boolean |
isAlternativeSignatureValid(ContentVerifierProvider verifierProvider)
Validate the signature on the certificate in this holder. |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider)
Validate the signature on the certificate in this holder. |
boolean |
isValidOn(java.util.Date date)
Return whether or not this certificate is valid on a particular date. |
org.bouncycastle.asn1.x509.Certificate |
toASN1Structure()
Return the underlying ASN.1 structure for the certificate in this holder. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X509CertificateHolder(byte[] certEncoding) throws java.io.IOException
certEncoding
- BER/DER encoding of the certificate.java.io.IOException
- in the event of corrupted data, or an incorrect structure.public X509CertificateHolder(org.bouncycastle.asn1.x509.Certificate x509Certificate)
x509Certificate
- an ASN.1 Certificate structure.Method Detail |
public int getVersionNumber()
public int getVersion()
public boolean hasExtensions()
public org.bouncycastle.asn1.x509.Extension getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid)
oid
- the OID of the extension of interest.public org.bouncycastle.asn1.x509.Extensions getExtensions()
public java.util.List getExtensionOIDs()
public java.util.Set getCriticalExtensionOIDs()
public java.util.Set getNonCriticalExtensionOIDs()
public java.math.BigInteger getSerialNumber()
public org.bouncycastle.asn1.x500.X500Name getIssuer()
public org.bouncycastle.asn1.x500.X500Name getSubject()
public java.util.Date getNotBefore()
public java.util.Date getNotAfter()
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public org.bouncycastle.asn1.x509.Certificate toASN1Structure()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()
public byte[] getSignature()
public boolean isValidOn(java.util.Date date)
date
- the date of interest.public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws CertException
verifierProvider
- a ContentVerifierProvider that can generate a verifier for the signature.CertException
- if the signature cannot be processed or is inappropriate.public boolean isAlternativeSignatureValid(ContentVerifierProvider verifierProvider) throws CertException
verifierProvider
- a ContentVerifierProvider that can generate a verifier for the signature.CertException
- if the signature cannot be processed or is inappropriate.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface org.bouncycastle.util.Encodable
java.io.IOException
- if an encoding cannot be generated.
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |