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 CertifiedKeyPairprivate INTEGERprivate PKIStatusInfostatic final Tag -
Constructor Summary
ConstructorsConstructorDescriptionCertResponse(INTEGER certReqId, PKIStatusInfo status) CertResponse(INTEGER certReqId, PKIStatusInfo status, CertifiedKeyPair certifiedKeyPair) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(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.booleanReturnstrueif the certifiedKeyPair field is present.
-
Field Details
-
certReqId
-
status
-
certifiedKeyPair
-
TAG
-
-
Constructor Details
-
CertResponse
-
CertResponse
-
-
Method Details
-
getCertReqId
-
getPKIStatusInfo
-
hasCertifiedKeyPair
public boolean hasCertifiedKeyPair()Returnstrueif 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:ASN1ValueReturns the base tag for this type, not counting any tags that may be imposed on it by its context. -
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using its own base tag.- Specified by:
encodein interfaceASN1Value- Parameters:
ostream- Output stream.- Throws:
IOException- If an error occurred.
-
encode
Description copied from interface:ASN1ValueWrite this value's DER encoding to an output stream using an implicit tag.- Specified by:
encodein interfaceASN1Value- Parameters:
implicitTag- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-