|
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.pkcs.PKCS10CertificationRequest
Holding class for a PKCS#10 certification request.
Constructor Summary | |
PKCS10CertificationRequest(byte[] encoded)
Create a PKCS10CertificationRequest from the passed in bytes. |
|
PKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
Create a PKCS10CertificationRequest from an underlying ASN.1 structure. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
org.bouncycastle.asn1.pkcs.Attribute[] |
getAttributes()
Return the attributes, if any associated with this request. |
org.bouncycastle.asn1.pkcs.Attribute[] |
getAttributes(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
Return an array of attributes matching the passed in type OID. |
byte[] |
getEncoded()
|
org.bouncycastle.asn1.x509.Extensions |
getRequestedExtensions()
Return any extensions requested in the PKCS#10 request. |
byte[] |
getSignature()
Return the bytes making up the signature associated with this request. |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSignatureAlgorithm()
Return the details of the signature algorithm used to create this request. |
org.bouncycastle.asn1.x500.X500Name |
getSubject()
Return the subject on this request. |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getSubjectPublicKeyInfo()
Return the SubjectPublicKeyInfo describing the public key this request is carrying. |
boolean |
hasAltPublicKey()
Return true if the certification request has an alternate public key present. |
int |
hashCode()
|
boolean |
isAltSignatureValid(ContentVerifierProvider verifierProvider)
Validate the alternate signature on the PKCS10 certification request in this holder. |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider)
Validate the signature on the PKCS10 certification request in this holder. |
org.bouncycastle.asn1.pkcs.CertificationRequest |
toASN1Structure()
Return the underlying ASN.1 structure for this request. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
certificationRequest
- the underlying ASN.1 structure representing a request.public PKCS10CertificationRequest(byte[] encoded) throws java.io.IOException
encoded
- BER/DER encoding of the CertificationRequest structure.java.io.IOException
- in the event of corrupted data, or an incorrect structure.Method Detail |
public org.bouncycastle.asn1.pkcs.CertificationRequest toASN1Structure()
public org.bouncycastle.asn1.x500.X500Name getSubject()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()
public byte[] getSignature()
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public org.bouncycastle.asn1.pkcs.Attribute[] getAttributes()
public org.bouncycastle.asn1.pkcs.Attribute[] getAttributes(org.bouncycastle.asn1.ASN1ObjectIdentifier type)
type
- the type of the attribute being looked for.public byte[] getEncoded() throws java.io.IOException
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws PKCSException
verifierProvider
- a ContentVerifierProvider that can generate a verifier for the signature.PKCSException
- if the signature cannot be processed or is inappropriate.public boolean hasAltPublicKey()
public boolean isAltSignatureValid(ContentVerifierProvider verifierProvider) throws PKCSException
verifierProvider
- a ContentVerifierProvider that can generate a verifier for the signature.PKCSException
- if the signature cannot be processed or is inappropriate.public org.bouncycastle.asn1.x509.Extensions getRequestedExtensions()
java.lang.IllegalStateException
- if the extension request is and is somehow invalid.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |