Package org.bouncycastle.jce
Class PKCS10CertificationRequest
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.pkcs.CertificationRequest
-
- org.bouncycastle.jce.PKCS10CertificationRequest
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
public class PKCS10CertificationRequest extends CertificationRequest
Deprecated.use classes in org.bouncycastle.pkcs.A class for verifying and creating PKCS10 Certification requests.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}) }
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.asn1.pkcs.CertificationRequest
reqInfo, sigAlgId, sigBits
-
-
Constructor Summary
Constructors Constructor Description PKCS10CertificationRequest(byte[] bytes)Deprecated.construct a PKCS10 certification request from a DER encoded byte stream.PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)Deprecated.create a PKCS10 certfication request using the BC provider.PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)Deprecated.create a PKCS10 certfication request using the named provider.PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)Deprecated.create a PKCS10 certfication request using the BC provider.PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)Deprecated.create a PKCS10 certfication request using the named provider.PKCS10CertificationRequest(ASN1Sequence sequence)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]getEncoded()Deprecated.return a DER encoded byte array representing this objectPublicKeygetPublicKey()Deprecated.return the public key associated with the certification request - the public key is created using the BC provider.PublicKeygetPublicKey(String provider)Deprecated.booleanverify()Deprecated.verify the request using the BC provider.booleanverify(String provider)Deprecated.verify the request using the passed in provider.booleanverify(PublicKey pubKey, String provider)Deprecated.verify the request using the passed in public key and the provider..-
Methods inherited from class org.bouncycastle.asn1.pkcs.CertificationRequest
getCertificationRequestInfo, getInstance, getSignature, getSignatureAlgorithm, toASN1Primitive
-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
-
-
-
Constructor Detail
-
PKCS10CertificationRequest
public PKCS10CertificationRequest(byte[] bytes)
Deprecated.construct a PKCS10 certification request from a DER encoded byte stream.
-
PKCS10CertificationRequest
public PKCS10CertificationRequest(ASN1Sequence sequence)
Deprecated.
-
PKCS10CertificationRequest
public PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
Deprecated.create a PKCS10 certfication request using the BC provider.
-
PKCS10CertificationRequest
public PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
Deprecated.create a PKCS10 certfication request using the BC provider.
-
PKCS10CertificationRequest
public PKCS10CertificationRequest(String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
Deprecated.create a PKCS10 certfication request using the named provider.
-
PKCS10CertificationRequest
public PKCS10CertificationRequest(String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
Deprecated.create a PKCS10 certfication request using the named provider.
-
-
Method Detail
-
getPublicKey
public PublicKey getPublicKey() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
Deprecated.return the public key associated with the certification request - the public key is created using the BC provider.
-
getPublicKey
public PublicKey getPublicKey(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
Deprecated.
-
verify
public boolean verify() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureExceptionDeprecated.verify the request using the BC provider.
-
verify
public boolean verify(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
Deprecated.verify the request using the passed in provider.
-
verify
public boolean verify(PublicKey pubKey, String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, SignatureException
Deprecated.verify the request using the passed in public key and the provider..
-
getEncoded
public byte[] getEncoded()
Deprecated.return a DER encoded byte array representing this object- Specified by:
getEncodedin interfaceEncodable- Overrides:
getEncodedin classASN1Object- Returns:
- BER/DER byte encoded object.
-
-