public class

PKCS10CertificationRequest

extends CertificationRequest
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.pkcs.CertificationRequest
       ↳ org.bouncycastle.jce.PKCS10CertificationRequest

Class Overview

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})
  }
 

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
[Expand]
Inherited Fields
From class org.bouncycastle.asn1.pkcs.CertificationRequest
Public Constructors
PKCS10CertificationRequest(byte[] bytes)
construct a PKCS10 certification request from a DER encoded byte stream.
PKCS10CertificationRequest(ASN1Sequence sequence)
PKCS10CertificationRequest(String signatureAlgorithm, X509Name 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)
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, String provider)
create a PKCS10 certfication request using the named provider.
Public Methods
byte[] getEncoded()
return a DER encoded byte array representing this object
PublicKey getPublicKey(String provider)
PublicKey getPublicKey()
return the public key associated with the certification request - the public key is created using the BC provider.
boolean verify(String provider)
verify the request using the passed in provider.
boolean verify(PublicKey pubKey, String provider)
verify the request using the passed in public key and the provider..
boolean verify()
verify the request using the BC provider.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.pkcs.CertificationRequest
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public PKCS10CertificationRequest (byte[] bytes)

construct a PKCS10 certification request from a DER encoded byte stream.

public PKCS10CertificationRequest (ASN1Sequence sequence)

public PKCS10CertificationRequest (String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)

create a PKCS10 certfication request using the BC provider.

public PKCS10CertificationRequest (String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey)

create a PKCS10 certfication request using the BC provider.

public PKCS10CertificationRequest (String signatureAlgorithm, X500Principal subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)

create a PKCS10 certfication request using the named provider.

public PKCS10CertificationRequest (String signatureAlgorithm, X509Name subject, PublicKey key, ASN1Set attributes, PrivateKey signingKey, String provider)

create a PKCS10 certfication request using the named provider.

Public Methods

public byte[] getEncoded ()

return a DER encoded byte array representing this object

Returns
  • BER/DER byte encoded object.

public PublicKey getPublicKey ()

return the public key associated with the certification request - the public key is created using the BC provider.

public boolean verify (String provider)

verify the request using the passed in provider.

public boolean verify (PublicKey pubKey, String provider)

verify the request using the passed in public key and the provider..

public boolean verify ()