public class C509CertificationRequestHolder
extends java.lang.Object
implements org.bouncycastle.util.Encodable
For a natively signed request (type 2) the signature covers the TBSCertificationRequest CBOR sequence; for a re-encoded RFC 2986 request (type 3) it covers the reconstructed DER CertificationRequestInfo.
| Constructor and Description |
|---|
C509CertificationRequestHolder(byte[] encoding)
Create a holder from the CBOR encoding of a C509 certification request.
|
C509CertificationRequestHolder(org.bouncycastle.cbor.c509.C509CertificationRequest request)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.cbor.c509.C509Attribute[] |
getAttributes() |
org.bouncycastle.cbor.c509.C509CertificationRequest |
getC509CertificationRequest()
Return the certification request this holder wraps.
|
byte[] |
getEncoded()
Return the CBOR encoding of the certification request.
|
int |
getRequestType() |
byte[] |
getSignedBytes()
Return the bytes the request signature is computed over: the
TBSCertificationRequest CBOR sequence for a natively signed request, the
reconstructed DER CertificationRequestInfo for a re-encoded one.
|
org.bouncycastle.asn1.x500.X500Name |
getSubject() |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider)
Validate the signature (the proof-of-possession) on this certification request.
|
public C509CertificationRequestHolder(org.bouncycastle.cbor.c509.C509CertificationRequest request)
public C509CertificationRequestHolder(byte[] encoding)
throws java.io.IOException
java.io.IOExceptionpublic org.bouncycastle.cbor.c509.C509CertificationRequest getC509CertificationRequest()
public int getRequestType()
public org.bouncycastle.asn1.x500.X500Name getSubject()
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public org.bouncycastle.cbor.c509.C509Attribute[] getAttributes()
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws CertException
verifierProvider - a provider of verifiers built on the request's subject
public key.CertExceptionpublic byte[] getSignedBytes()
throws java.io.IOException
java.io.IOExceptionpublic byte[] getEncoded()
throws java.io.IOException
getEncoded in interface org.bouncycastle.util.Encodablejava.io.IOException