|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.pkcs.PKCS10CertificationRequest
org.bouncycastle.pkcs.jcajce.JcaPKCS10CertificationRequest
JCA-aware extension of PKCS10CertificationRequest that returns the request's public
key as a JCA PublicKey. Use setProvider(java.lang.String) to pin the underlying
KeyFactory lookup to a specific JCE provider.
| Constructor Summary | |
JcaPKCS10CertificationRequest(byte[] encoding)
Parse a BER/DER encoded PKCS#10 request. |
|
JcaPKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
Wrap a parsed CertificationRequest. |
|
JcaPKCS10CertificationRequest(PKCS10CertificationRequest requestHolder)
Re-wrap an existing PKCS10CertificationRequest as a JCA-aware holder. |
|
| Method Summary | |
java.security.PublicKey |
getPublicKey()
Return the public key carried by the request as a JCA PublicKey. |
JcaPKCS10CertificationRequest |
setProvider(java.security.Provider provider)
Pin KeyFactory lookups to the supplied JCE provider. |
JcaPKCS10CertificationRequest |
setProvider(java.lang.String providerName)
Pin KeyFactory lookups to the named JCE provider. |
| Methods inherited from class org.bouncycastle.pkcs.PKCS10CertificationRequest |
equals, getAttributes, getAttributes, getEncoded, getRequestedExtensions, getSignature, getSignatureAlgorithm, getSubject, getSubjectPublicKeyInfo, hasAltPublicKey, hashCode, isAltSignatureValid, isSignatureValid, toASN1Structure |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JcaPKCS10CertificationRequest(org.bouncycastle.asn1.pkcs.CertificationRequest certificationRequest)
CertificationRequest.
certificationRequest - the underlying request.
public JcaPKCS10CertificationRequest(byte[] encoding)
throws java.io.IOException
encoding - the encoded request bytes.
java.io.IOException - if the data is not a valid CertificationRequest.public JcaPKCS10CertificationRequest(PKCS10CertificationRequest requestHolder)
PKCS10CertificationRequest as a JCA-aware holder.
requestHolder - the existing holder.| Method Detail |
public JcaPKCS10CertificationRequest setProvider(java.lang.String providerName)
KeyFactory lookups to the named JCE provider.
providerName - name of the registered provider.
public JcaPKCS10CertificationRequest setProvider(java.security.Provider provider)
KeyFactory lookups to the supplied JCE provider.
provider - the provider instance.
public java.security.PublicKey getPublicKey()
throws java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException
PublicKey.
java.security.InvalidKeyException - if the SubjectPublicKeyInfo cannot be parsed.
java.security.NoSuchAlgorithmException - if no matching KeyFactory can be located.
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||