public class CertificationRequestInfo extends ASN1Object
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}) }
Constructor and Description |
---|
CertificationRequestInfo(X500Name subject,
SubjectPublicKeyInfo pkInfo,
ASN1Set attributes)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
ASN1Set |
getAttributes() |
static CertificationRequestInfo |
getInstance(java.lang.Object obj) |
X500Name |
getSubject() |
SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
ASN1Integer |
getVersion() |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public CertificationRequestInfo(X500Name subject, SubjectPublicKeyInfo pkInfo, ASN1Set attributes)
Note: Early on a lot of CAs would only accept messages with attributes missing. As the ASN.1 def shows the attributes field is not optional so should always at least contain an empty set. If a fully compliant request is required, pass in an empty set, the class will otherwise interpret a null as it should encode the request with the field missing.
subject
- subject to be associated with the public keypkInfo
- public key to be associated with subjectattributes
- any attributes to be associated with the request.public static CertificationRequestInfo getInstance(java.lang.Object obj)
public ASN1Integer getVersion()
public X500Name getSubject()
public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public ASN1Set getAttributes()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object