Top Description Inners Fields Constructors Methods
org.bouncycastle.asn1.cmc

public Class CertificationRequest

extends ASN1Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.ASN1BitString, .ASN1Encodable, .ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1Set, .ASN1TaggedObject, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.asn1.x509.AlgorithmIdentifier

  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
 }

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final CertificationRequest.CertificationRequestInfo
private final ASN1BitString
private final AlgorithmIdentifier
private static final ASN1Integer

Constructor Summary

AccessConstructor and Description
public
CertificationRequest(X500Name subject, AlgorithmIdentifier subjectPublicAlgorithm, ASN1BitString subjectPublicKey, ASN1Set attributes, AlgorithmIdentifier signatureAlgorithm, ASN1BitString signature)

private

Method Summary

Modifier and TypeMethod and Description
public ASN1Set
public static CertificationRequest
public ASN1BitString
public AlgorithmIdentifier
public X500Name
public ASN1BitString
public AlgorithmIdentifier
public BigInteger
public ASN1Primitive

Returns:

the public key as an ASN.1 primitive.
parsePublicKey
()

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.

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

certificationRequestInfoback to summary
private final CertificationRequest.CertificationRequestInfo certificationRequestInfo
signatureback to summary
private final ASN1BitString signature
signatureAlgorithmback to summary
private final AlgorithmIdentifier signatureAlgorithm
ZEROback to summary
private static final ASN1Integer ZERO

Constructor Detail

CertificationRequestback to summary
public CertificationRequest(X500Name subject, AlgorithmIdentifier subjectPublicAlgorithm, ASN1BitString subjectPublicKey, ASN1Set attributes, AlgorithmIdentifier signatureAlgorithm, ASN1BitString signature)
CertificationRequestback to summary
private CertificationRequest(ASN1Sequence seq)

Method Detail

getAttributesback to summary
public ASN1Set getAttributes()
getInstanceback to summary
public static CertificationRequest getInstance(Object o)
getSignatureback to summary
public ASN1BitString getSignature()
getSignatureAlgorithmback to summary
public AlgorithmIdentifier getSignatureAlgorithm()
getSubjectback to summary
public X500Name getSubject()
getSubjectPublicKeyback to summary
public ASN1BitString getSubjectPublicKey()
getSubjectPublicKeyAlgorithmback to summary
public AlgorithmIdentifier getSubjectPublicKeyAlgorithm()
getVersionback to summary
public BigInteger getVersion()
parsePublicKeyback to summary
public 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:ASN1Primitive

the public key as an ASN.1 primitive.

Exceptions
IOException:
- if the bit string doesn't represent a DER encoded object.
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.

org.bouncycastle.asn1.cmc back to summary

private Class CertificationRequest.CertificationRequestInfo

extends ASN1Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ASN1Set
private final X500Name
private final ASN1Sequence
private final ASN1Integer

Constructor Summary

AccessConstructor and Description
private
private
CertificationRequestInfo(X500Name subject, AlgorithmIdentifier algorithm, ASN1BitString subjectPublicKey, ASN1Set attributes)

Method Summary

Modifier and TypeMethod and Description
private ASN1Set
private X500Name
private ASN1Sequence
private ASN1Integer
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

attributesback to summary
private final ASN1Set attributes
subjectback to summary
private final X500Name subject
subjectPublicKeyInfoback to summary
private final ASN1Sequence subjectPublicKeyInfo
versionback to summary
private final ASN1Integer version

Constructor Detail

CertificationRequestInfoback to summary
private CertificationRequestInfo(ASN1Sequence seq)
CertificationRequestInfoback to summary
private CertificationRequestInfo(X500Name subject, AlgorithmIdentifier algorithm, ASN1BitString subjectPublicKey, ASN1Set attributes)

Method Detail

getAttributesback to summary
private ASN1Set getAttributes()
getSubjectback to summary
private X500Name getSubject()
getSubjectPublicKeyInfoback to summary
private ASN1Sequence getSubjectPublicKeyInfo()
getVersionback to summary
private ASN1Integer getVersion()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.