Package org.mozilla.jss.pkix.cert
Class Extension
java.lang.Object
org.mozilla.jss.pkix.cert.Extension
- All Implemented Interfaces:
ASN1Value
- Direct Known Subclasses:
SubjectKeyIdentifier
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private OBJECT_IDENTIFIER
private OCTET_STRING
static final Tag
private static final Extension.Template
-
Constructor Summary
ConstructorsConstructorDescriptionExtension
(OBJECT_IDENTIFIER extnId, boolean critical, OCTET_STRING extnValue) -
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 implicit, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.boolean
Returns the extension identifier.getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static Extension.Template
-
Field Details
-
TAG
-
extnId
-
critical
private boolean critical -
extnValue
-
templateInstance
-
-
Constructor Details
-
Extension
-
-
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. -
getExtnId
Returns the extension identifier. -
getCritical
public boolean getCritical() -
getExtnValue
-
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:
implicit
- Implicit tag.ostream
- Output stream.- Throws:
IOException
- If an error occurred.
-
getTemplate
-