Package org.mozilla.jss.pkix.cmmf
Class CertResponse
java.lang.Object
org.mozilla.jss.pkix.cmmf.CertResponse
- All Implemented Interfaces:
ASN1Value
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CertifiedKeyPair
private INTEGER
private PKIStatusInfo
static final Tag
-
Constructor Summary
ConstructorsConstructorDescriptionCertResponse
(INTEGER certReqId, PKIStatusInfo status) CertResponse
(INTEGER certReqId, PKIStatusInfo status, CertifiedKeyPair certifiedKeyPair) -
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.Returns the optional certified key pair.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.boolean
Returnstrue
if the certifiedKeyPair field is present.
-
Field Details
-
certReqId
-
status
-
certifiedKeyPair
-
TAG
-
-
Constructor Details
-
CertResponse
-
CertResponse
-
-
Method Details
-
getCertReqId
-
getPKIStatusInfo
-
hasCertifiedKeyPair
public boolean hasCertifiedKeyPair()Returnstrue
if the certifiedKeyPair field is present. -
getCertifiedKeyPair
Returns the optional certified key pair. Should only be called if the certifiedKeyPair field is present. -
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.
-