public class PKCS10CertificationRequest extends CertificationRequest
CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, signature BIT STRING } CertificationRequestInfo ::= SEQUENCE { version INTEGER { v1(0) } (v1,...), subject Name, subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, attributes [0] Attributes{{ CRIAttributes }} } Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { type ATTRIBUTE.&id({IOSet}), values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{\@type}) }
reqInfo, sigAlgId, sigBits
BER, DER
Constructor and Description |
---|
PKCS10CertificationRequest(ASN1Sequence sequence) |
PKCS10CertificationRequest(byte[] bytes)
construct a PKCS10 certification request from a DER encoded
byte stream.
|
PKCS10CertificationRequest(String signatureAlgorithm,
X500Principal subject,
PublicKey key,
ASN1Set attributes,
PrivateKey signingKey)
create a PKCS10 certfication request using the BC provider.
|
PKCS10CertificationRequest(String signatureAlgorithm,
X500Principal subject,
PublicKey key,
ASN1Set attributes,
PrivateKey signingKey,
String provider)
create a PKCS10 certfication request using the named provider.
|
PKCS10CertificationRequest(String signatureAlgorithm,
X509Name subject,
PublicKey key,
ASN1Set attributes,
PrivateKey signingKey)
create a PKCS10 certfication request using the BC provider.
|
PKCS10CertificationRequest(String signatureAlgorithm,
X509Name subject,
PublicKey key,
ASN1Set attributes,
PrivateKey signingKey,
String provider)
create a PKCS10 certfication request using the named provider.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded()
return a DER encoded byte array representing this object
|
PublicKey |
getPublicKey()
return the public key associated with the certification request -
the public key is created using the BC provider.
|
PublicKey |
getPublicKey(String provider) |
boolean |
verify()
verify the request using the BC provider.
|
boolean |
verify(PublicKey pubKey,
String provider)
verify the request using the passed in public key and the provider..
|
boolean |
verify(String provider)
verify the request using the passed in provider.
|
getCertificationRequestInfo, getInstance, getSignature, getSignatureAlgorithm, toASN1Object
equals, getDEREncoded, getDERObject, getEncoded, hashCode
public PKCS10CertificationRequest(byte[] bytes)
public PKCS10CertificationRequest(ASN1Sequence sequence)
public PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public PublicKey getPublicKey() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
public PublicKey getPublicKey(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
public boolean verify() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public boolean verify(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public boolean verify(PublicKey pubKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
public byte[] getEncoded()
getEncoded
in class ASN1Encodable
Copyright © 2015. All rights reserved.