Package org.bouncycastle.asn1.pkcs
Class CertificationRequestInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.pkcs.CertificationRequestInfo
- All Implemented Interfaces:
ASN1Encodable
public class CertificationRequestInfo extends ASN1Object
PKCS10 CertificationRequestInfo object.
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 Summary
Constructors Constructor Description CertificationRequestInfo(ASN1Sequence seq)Deprecated.use getInstance().CertificationRequestInfo(X500Name subject, SubjectPublicKeyInfo pkInfo, ASN1Set attributes)Basic constructor.CertificationRequestInfo(X509Name subject, SubjectPublicKeyInfo pkInfo, ASN1Set attributes)Deprecated.use X500Name method. -
Method Summary
Modifier and Type Method Description ASN1SetgetAttributes()static CertificationRequestInfogetInstance(Object obj)X500NamegetSubject()SubjectPublicKeyInfogetSubjectPublicKeyInfo()ASN1IntegergetVersion()ASN1PrimitivetoASN1Primitive()Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Constructor Details
-
CertificationRequestInfo
Basic constructor.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.
- Parameters:
subject- subject to be associated with the public keypkInfo- public key to be associated with subjectattributes- any attributes to be associated with the request.
-
CertificationRequestInfo
Deprecated.use X500Name method. -
CertificationRequestInfo
Deprecated.use getInstance().
-
-
Method Details
-
getInstance
-
getVersion
-
getSubject
-
getSubjectPublicKeyInfo
-
getAttributes
-
toASN1Primitive
- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-