org.mozilla.jss.pkcs10
Class CertificationRequestInfo
java.lang.Object
org.mozilla.jss.pkcs10.CertificationRequestInfo
- ASN1Value
public class CertificationRequestInfo
extends java.lang.Object
A TBSCertificationRequest (to-be-signed CertificationRequest),
the actual information in
a CertificationRequest apart from the signature.
CertificationRequestInfo
public CertificationRequestInfo(INTEGER version,
Name subject,
SubjectPublicKeyInfo subjectPublicKeyInfo,
SET attributes)
Creates a CertificationRequestInfo with the required fields.
encode
public void encode(OutputStream ostream)
throws IOException
- encode in interface ASN1Value
encode
public void encode(Tag implicitTag,
OutputStream ostream)
throws IOException
- encode in interface ASN1Value
getAttributes
public SET getAttributes()
getSubject
public Name getSubject()
getVersion
public INTEGER getVersion()
setAttributes
public void setAttributes(SET attributes)
setSubject
public void setSubject(Name subject)
setSubjectPublicKeyInfo
public void setSubjectPublicKeyInfo(PublicKey pubk)
throws InvalidBERException,
IOException
Extracts the SubjectPublicKeyInfo from the given public key and
stores it in the CertificationRequestInfo.
InvalidBERException
- If an error occurs decoding the
the information extracted from the public key.
setSubjectPublicKeyInfo
public void setSubjectPublicKeyInfo(SubjectPublicKeyInfo subjectPublicKeyInfo)
setVersion
public void setVersion(INTEGER version)