Package org.mozilla.jss.pkix.cmmf
Class CertOrEncCert
java.lang.Object
org.mozilla.jss.pkix.cmmf.CertOrEncCert
- All Implemented Interfaces:
ASN1Value
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
certificate
-
encoding
byte[] encoding -
TAG
-
-
Constructor Details
-
CertOrEncCert
- Throws:
InvalidBERException
- If the certificate is not a valid BER-encoding.IOException
-
-
Method Details
-
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
- This parameter is ignored, because a CHOICE cannot have an implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-