Package org.mozilla.jss.pkcs10
Class CertificationRequestInfo
java.lang.Object
org.mozilla.jss.pkcs10.CertificationRequestInfo
- All Implemented Interfaces:
ASN1Value
A TBSCertificationRequest (to-be-signed CertificationRequest),
the actual information in
a CertificationRequest apart from the signature.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Template class for decoding a CertificationRequestInfo. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SET
private Name
private SubjectPublicKeyInfo
(package private) static final Tag
private static final CertificationRequestInfo.Template
private INTEGER
-
Constructor Summary
ConstructorsConstructorDescriptionCertificationRequestInfo
(INTEGER version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, SET attributes) Creates a CertificationRequestInfo with the required fields. -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.void
encode
(Tag implicitTag, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.void
print
(PrintStream ps) void
setAttributes
(SET attributes) void
setSubject
(Name subject) void
Extracts the SubjectPublicKeyInfo from the given public key and stores it in the CertificationRequestInfo.void
setSubjectPublicKeyInfo
(SubjectPublicKeyInfo subjectPublicKeyInfo) void
setVersion
(INTEGER version) private void
verifyNotNull
(Object obj)
-
Field Details
-
version
-
subject
-
subjectPublicKeyInfo
-
attributes
-
TAG
-
templateInstance
-
-
Constructor Details
-
CertificationRequestInfo
public CertificationRequestInfo(INTEGER version, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, SET attributes) Creates a CertificationRequestInfo with the required fields.
-
-
Method Details
-
setVersion
-
getVersion
-
setSubject
-
getSubject
-
setSubjectPublicKeyInfo
-
setSubjectPublicKeyInfo
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.IOException
-
getSubjectPublicKeyInfo
-
setAttributes
-
getAttributes
-
verifyNotNull
-
getTag
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicitTag
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-
print
- Throws:
IOException
InvalidBERException
-