Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

CertificationRequestInfo Class Reference

List of all members.


Detailed Description

CertificationRequestInfo ::= SEQUENCE { version Version, subject Name, subjectPublicKeyInfo SubjectPublicKeyInfo, attributes [0] IMPLICIT Attributes }.

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

Constructor & Destructor Documentation

CertificationRequestInfo ( int  version,
Name  subject,
SubjectPublicKeyInfo  subjectPublicKeyInfo,
List  attributes 
)

CertificationRequestInfo ( int  version,
Name  subject,
SubjectPublicKeyInfo  subjectPublicKeyInfo,
List  attributes,
byte[]  encoding 
) [private]


Member Function Documentation

List getAttributes (  ) 

Returns:
Returns the attributes.

Name getSubject (  ) 

Returns:
Returns the subject.

SubjectPublicKeyInfo getSubjectPublicKeyInfo (  ) 

Returns:
Returns the subjectPublicKeyInfo.

int getVersion (  ) 

Returns:
Returns the version.

byte [] getEncoded (  ) 

Returns ASN.1 encoded form of this CertificationRequestInfo.

Returns:
a byte array containing ASN.1 encode form.

String toString (  ) 


Member Data Documentation

int version [private]

Name subject [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;
        }
    }