org.mozilla.jss.pkcs10

Class CertificationRequestInfo

public class CertificationRequestInfo extends Object implements ASN1Value

A TBSCertificationRequest (to-be-signed CertificationRequest), the actual information in a CertificationRequest apart from the signature.
Nested Class Summary
static classCertificationRequestInfo.Template
Template class for decoding a CertificationRequestInfo.
Constructor Summary
CertificationRequestInfo(INTEGER version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, SET attributes)
Creates a CertificationRequestInfo with the required fields.
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicitTag, OutputStream ostream)
SETgetAttributes()
NamegetSubject()
SubjectPublicKeyInfogetSubjectPublicKeyInfo()
TaggetTag()
static CertificationRequestInfo.TemplategetTemplate()
INTEGERgetVersion()
voidprint(PrintStream ps)
voidsetAttributes(SET attributes)
voidsetSubject(Name subject)
voidsetSubjectPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)
voidsetSubjectPublicKeyInfo(PublicKey pubk)
Extracts the SubjectPublicKeyInfo from the given public key and stores it in the CertificationRequestInfo.
voidsetVersion(INTEGER version)

Constructor Detail

CertificationRequestInfo

public CertificationRequestInfo(INTEGER version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, SET attributes)
Creates a CertificationRequestInfo with the required fields.

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicitTag, OutputStream ostream)

getAttributes

public SET getAttributes()

getSubject

public Name getSubject()

getSubjectPublicKeyInfo

public SubjectPublicKeyInfo getSubjectPublicKeyInfo()

getTag

public Tag getTag()

getTemplate

public static CertificationRequestInfo.Template getTemplate()

getVersion

public INTEGER getVersion()

print

public void print(PrintStream ps)

setAttributes

public void setAttributes(SET attributes)

setSubject

public void setSubject(Name subject)

setSubjectPublicKeyInfo

public void setSubjectPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)

setSubjectPublicKeyInfo

public void setSubjectPublicKeyInfo(PublicKey pubk)
Extracts the SubjectPublicKeyInfo from the given public key and stores it in the CertificationRequestInfo.

Throws: InvalidBERException If an error occurs decoding the the information extracted from the public key.

setVersion

public void setVersion(INTEGER version)