public class PKCS10CertificationRequest
extends java.lang.Object
Constructor and Description |
---|
PKCS10CertificationRequest(byte[] encoded)
Create a PKCS10CertificationRequestHolder from the passed in bytes.
|
PKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
Create a PKCS10CertificationRequestHolder from an underlying ASN.1 structure.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.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 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