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 booleanprivate OBJECT_IDENTIFIERprivate OCTET_STRINGstatic final Tagprivate static final Extension.Template -
Constructor Summary
ConstructorsConstructorDescriptionExtension(OBJECT_IDENTIFIER extnId, boolean critical, OCTET_STRING extnValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream ostream) Write this value's DER encoding to an output stream using its own base tag.voidencode(Tag implicit, OutputStream ostream) Write this value's DER encoding to an output stream using an implicit tag.booleanReturns 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:ASN1ValueReturns 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: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:
implicit- Implicit tag.ostream- Output stream.- Throws:
IOException- If an error occurred.
-
getTemplate
-