public class BcPKCS10CertificationRequest extends PKCS10CertificationRequest
PKCS10CertificationRequest that exposes the request's
public key as an AsymmetricKeyParameter (no JCA dependency).| Constructor and Description |
|---|
BcPKCS10CertificationRequest(byte[] encoding)
Parse a BER/DER encoded PKCS#10 request.
|
BcPKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
Wrap a parsed
CertificationRequest. |
BcPKCS10CertificationRequest(PKCS10CertificationRequest requestHolder)
Re-wrap an existing
PKCS10CertificationRequest as a lightweight-aware holder. |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getPublicKey()
Return the public key carried by the request as a lightweight
AsymmetricKeyParameter. |
equals, getAttributes, getAttributes, getEncoded, getRequestedExtensions, getSignature, getSignatureAlgorithm, getSubject, getSubjectPublicKeyInfo, hasAltPublicKey, hashCode, isAltSignatureValid, isSignatureValid, toASN1Structurepublic BcPKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
CertificationRequest.certificationRequest - the underlying request.public BcPKCS10CertificationRequest(byte[] encoding)
throws java.io.IOException
encoding - the encoded request bytes.java.io.IOException - if the data is not a valid CertificationRequest.public BcPKCS10CertificationRequest(PKCS10CertificationRequest requestHolder)
PKCS10CertificationRequest as a lightweight-aware holder.requestHolder - the existing holder.public org.bouncycastle.crypto.params.AsymmetricKeyParameter getPublicKey()
throws PKCSException
AsymmetricKeyParameter.PKCSException - if the embedded SubjectPublicKeyInfo cannot be decoded.