Package org.mozilla.jss.pkix.crmf
Class CertRequest
java.lang.Object
org.mozilla.jss.pkix.crmf.CertRequest
- All Implemented Interfaces:
ASN1Value
A PKIX CertRequest. Currently can only be decoded from its BER
encoding. There are no methods for constructing one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Template class for constructing CertRequests from their BER encoding. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate INTEGER
private CertTemplate
private SEQUENCE
static final Tag
-
Constructor Summary
ConstructorsConstructorDescriptionCertRequest
(INTEGER certReqId, CertTemplate certTemplate, SEQUENCE controls) -
Method Summary
Modifier and TypeMethodDescriptioncontrolAt
(int i) Returns the ith Control.void
encode
(OutputStream ostream) This method is not yet supported.void
encode
(Tag implicit, OutputStream ostream) This method is not yet supported.Returns the certReqId (certificate request ID) field.Returns the CertTemplate field.Returns the controls field.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.int
Returns the number of optional Controls in the cert request.
-
Field Details
-
certReqId
-
certTemplate
-
controls
-
TAG
-
-
Constructor Details
-
CertRequest
- Parameters:
certReqId
- May NOT be null.certTemplate
- May NOT be null.controls
- May be null.
-
-
Method Details
-
getCertReqId
Returns the certReqId (certificate request ID) field. -
getCertTemplate
Returns the CertTemplate field. -
getControls
Returns the controls field. -
numControls
public int numControls()Returns the number of optional Controls in the cert request. The number may be zero. -
controlAt
Returns the ith Control.i
must be in the range [0..numControls-1]. -
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
This method is not yet supported.- Specified by:
encode
in interfaceASN1Value
- Parameters:
ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
encode
This method is not yet supported.- Specified by:
encode
in interfaceASN1Value
- Parameters:
implicit
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-