![]() |
|
Contents |
Version ::= INTEGER
Attributes ::= SET OF Attribute
Public Member Functions | |
| CertificationRequestInfo (int version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, List attributes) | |
| List | getAttributes () |
| Name | getSubject () |
| SubjectPublicKeyInfo | getSubjectPublicKeyInfo () |
| int | getVersion () |
| byte[] | getEncoded () |
| Returns ASN.1 encoded form of this CertificationRequestInfo. | |
| String | toString () |
Static Public Attributes | |
| static final ASN1Sequence | ASN1 |
Private Member Functions | |
| CertificationRequestInfo (int version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, List attributes, byte[] encoding) | |
Private Attributes | |
| int | version |
| Name | subject |
| SubjectPublicKeyInfo | subjectPublicKeyInfo |
| List | attributes |
| byte[] | encoding |
| CertificationRequestInfo | ( | int | version, | |
| Name | subject, | |||
| SubjectPublicKeyInfo | subjectPublicKeyInfo, | |||
| List | attributes | |||
| ) |
| CertificationRequestInfo | ( | int | version, | |
| Name | subject, | |||
| SubjectPublicKeyInfo | subjectPublicKeyInfo, | |||
| List | attributes, | |||
| byte[] | encoding | |||
| ) | [private] |
| List getAttributes | ( | ) |
| Name getSubject | ( | ) |
| SubjectPublicKeyInfo getSubjectPublicKeyInfo | ( | ) |
| int getVersion | ( | ) |
| byte [] getEncoded | ( | ) |
Returns ASN.1 encoded form of this CertificationRequestInfo.
| String toString | ( | ) |
int version [private] |
SubjectPublicKeyInfo subjectPublicKeyInfo [private] |
List attributes [private] |
byte [] encoding [private] |
final ASN1Sequence ASN1 [static] |
Initial value:
new ASN1Sequence(new ASN1Type[] { ASN1Integer.getInstance(), // version Name.ASN1, // subject SubjectPublicKeyInfo.ASN1, // subjectPublicKeyInfo new ASN1Implicit(0, new ASN1SetOf( AttributeTypeAndValue.ASN1)) // attributes }) { protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new CertificationRequestInfo( ASN1Integer.toIntValue(values[0]), (Name) values[1], (SubjectPublicKeyInfo) values[2], (List) values[3], in.getEncoded()); } protected void getValues(Object object, Object[] values) { CertificationRequestInfo certReqInfo = (CertificationRequestInfo) object; values[0] = ASN1Integer.fromIntValue(certReqInfo.version); values[1] = certReqInfo.subject; values[2] = certReqInfo.subjectPublicKeyInfo; values[3] = certReqInfo.attributes; } }