Class CertificationRequest

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmc.CertificationRequest
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class CertificationRequest extends org.bouncycastle.asn1.ASN1Object
   CertificationRequest ::= SEQUENCE {
     certificationRequestInfo  SEQUENCE {
       version                   INTEGER,
       subject                   Name,
       subjectPublicKeyInfo      SEQUENCE {
          algorithm                 AlgorithmIdentifier,
          subjectPublicKey          BIT STRING },
       attributes                [0] IMPLICIT SET OF Attribute },
    signatureAlgorithm        AlgorithmIdentifier,
    signature                 BIT STRING
  }
 
  • Constructor Summary

    Constructors
    Constructor
    Description
    CertificationRequest(org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.asn1.x509.AlgorithmIdentifier subjectPublicAlgorithm, org.bouncycastle.asn1.ASN1BitString subjectPublicKey, org.bouncycastle.asn1.ASN1Set attributes, org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm, org.bouncycastle.asn1.ASN1BitString signature)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1Set
     
     
    org.bouncycastle.asn1.ASN1BitString
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
    org.bouncycastle.asn1.x500.X500Name
     
    org.bouncycastle.asn1.ASN1BitString
     
    org.bouncycastle.asn1.x509.AlgorithmIdentifier
     
     
    org.bouncycastle.asn1.ASN1Primitive
    If the public key is an encoded object this will return the ASN.1 primitives encoded - if the bitstring can't be decoded this routine throws an IOException.
    org.bouncycastle.asn1.ASN1Primitive
     

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CertificationRequest

      public CertificationRequest(org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.asn1.x509.AlgorithmIdentifier subjectPublicAlgorithm, org.bouncycastle.asn1.ASN1BitString subjectPublicKey, org.bouncycastle.asn1.ASN1Set attributes, org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm, org.bouncycastle.asn1.ASN1BitString signature)
  • Method Details

    • getInstance

      public static CertificationRequest getInstance(Object o)
    • getVersion

      public BigInteger getVersion()
    • getSubject

      public org.bouncycastle.asn1.x500.X500Name getSubject()
    • getAttributes

      public org.bouncycastle.asn1.ASN1Set getAttributes()
    • getSubjectPublicKeyAlgorithm

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSubjectPublicKeyAlgorithm()
    • getSubjectPublicKey

      public org.bouncycastle.asn1.ASN1BitString getSubjectPublicKey()
    • parsePublicKey

      public org.bouncycastle.asn1.ASN1Primitive parsePublicKey() throws IOException
      If the public key is an encoded object this will return the ASN.1 primitives encoded - if the bitstring can't be decoded this routine throws an IOException.
      Returns:
      the public key as an ASN.1 primitive.
      Throws:
      IOException - - if the bit string doesn't represent a DER encoded object.
    • getSignatureAlgorithm

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()
    • getSignature

      public org.bouncycastle.asn1.ASN1BitString getSignature()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object