public class CertificationRequest extends 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 and Description |
---|
CertificationRequest(X500Name subject,
AlgorithmIdentifier subjectPublicAlgorithm,
DERBitString subjectPublicKey,
ASN1Set attributes,
AlgorithmIdentifier signatureAlgorithm,
DERBitString signature) |
Modifier and Type | Method and Description |
---|---|
ASN1Set |
getAttributes() |
static CertificationRequest |
getInstance(java.lang.Object o) |
DERBitString |
getSignature() |
AlgorithmIdentifier |
getSignatureAlgorithm() |
X500Name |
getSubject() |
DERBitString |
getSubjectPublicKey() |
AlgorithmIdentifier |
getSubjectPublicKeyAlgorithm() |
java.math.BigInteger |
getVersion() |
ASN1Primitive |
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.
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public CertificationRequest(X500Name subject, AlgorithmIdentifier subjectPublicAlgorithm, DERBitString subjectPublicKey, ASN1Set attributes, AlgorithmIdentifier signatureAlgorithm, DERBitString signature)
public static CertificationRequest getInstance(java.lang.Object o)
public java.math.BigInteger getVersion()
public X500Name getSubject()
public ASN1Set getAttributes()
public AlgorithmIdentifier getSubjectPublicKeyAlgorithm()
public DERBitString getSubjectPublicKey()
public ASN1Primitive parsePublicKey() throws java.io.IOException
java.io.IOException
- - if the bit string doesn't represent a DER encoded object.public AlgorithmIdentifier getSignatureAlgorithm()
public DERBitString getSignature()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object