public class PKCS10CertificationRequestHolder extends Object
| Constructor and Description |
|---|
PKCS10CertificationRequestHolder(byte[] encoded)
Create a PKCS10CertificationRequestHolder from the passed in bytes.
|
PKCS10CertificationRequestHolder(CertificationRequest certificationRequest)
Create a PKCS10CertificationRequestHolder from an underlying ASN.1 structure.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Attribute[] |
getAttributes()
Return the attributes, if any associated with this request.
|
Attribute[] |
getAttributes(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.
|
AlgorithmIdentifier |
getSignatureAlgorithm()
Return the details of the signature algorithm used to create this request.
|
X500Name |
getSubject()
Return the subject on this request.
|
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.
|
CertificationRequest |
toASN1Structure()
Return the underlying ASN.1 structure for this request.
|
public PKCS10CertificationRequestHolder(CertificationRequest certificationRequest)
certificationRequest - the underlying ASN.1 structure representing a request.public PKCS10CertificationRequestHolder(byte[] encoded)
throws IOException
encoded - BER/DER encoding of the CertificationRequest structure.IOException - in the event of corrupted data, or an incorrect structure.public CertificationRequest toASN1Structure()
public X500Name getSubject()
public AlgorithmIdentifier getSignatureAlgorithm()
public byte[] getSignature()
public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public Attribute[] getAttributes()
public Attribute[] getAttributes(ASN1ObjectIdentifier type)
type - the type of the attribute being looked for.public byte[] getEncoded()
throws IOException
IOExceptionpublic 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.Copyright © 2015. All rights reserved.