|
Bouncy Castle Cryptography Library 1.46 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.pkcs.PKCS10CertificationRequestHolder
public class PKCS10CertificationRequestHolder
Holding class for a PKCS#10 certification request.
Constructor Summary | |
---|---|
PKCS10CertificationRequestHolder(byte[] encoded)
Create a PKCS10CertificationRequestHolder from the passed in bytes. |
|
PKCS10CertificationRequestHolder(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
Create a PKCS10CertificationRequestHolder 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()
|
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. |
int |
hashCode()
|
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 PKCS10CertificationRequestHolder(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
certificationRequest
- the underlying ASN.1 structure representing a request.public PKCS10CertificationRequestHolder(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
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 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.46 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |