Package org.bouncycastle.asn1.cmc
Class CertificationRequest
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.cmc.CertificationRequest
- All Implemented Interfaces:
ASN1Encodable,Encodable
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
ConstructorsConstructorDescriptionCertificationRequest(X500Name subject, AlgorithmIdentifier subjectPublicAlgorithm, DERBitString subjectPublicKey, ASN1Set attributes, AlgorithmIdentifier signatureAlgorithm, DERBitString signature) -
Method Summary
Modifier and TypeMethodDescriptionstatic CertificationRequestIf 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.Method providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
CertificationRequest
public CertificationRequest(X500Name subject, AlgorithmIdentifier subjectPublicAlgorithm, DERBitString subjectPublicKey, ASN1Set attributes, AlgorithmIdentifier signatureAlgorithm, DERBitString signature)
-
-
Method Details
-
getInstance
-
getVersion
-
getSubject
-
getAttributes
-
getSubjectPublicKeyAlgorithm
-
getSubjectPublicKey
-
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.- Returns:
- the public key as an ASN.1 primitive.
- Throws:
IOException- - if the bit string doesn't represent a DER encoded object.
-
getSignatureAlgorithm
-
getSignature
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-