org.mozilla.jss.asn1

Class SET.Template.Element

Enclosing Class:
SET.Template

public static class SET.Template.Element
extends java.lang.Object

An element of a SET template.

Constructor Summary

Element(Tag implicitTag, ASN1Template type, boolean optional)
Element(Tag implicitTag, ASN1Template type, ASN1Value defaultVal)

Method Summary

ASN1Value
getDefault()
Returns the default value for this element, if one exists.
Tag
getImplicitTag()
ASN1Template
getTemplate()
Returns the template for this element.
boolean
isOptional()
boolean
tagMatch(Tag tag)
Determines whether the given tag satisfies this SET element.

Constructor Details

Element

public Element(Tag implicitTag,
               ASN1Template type,
               boolean optional)

Element

public Element(Tag implicitTag,
               ASN1Template type,
               ASN1Value defaultVal)

Method Details

getDefault

public ASN1Value getDefault()
Returns the default value for this element, if one exists. Otherwise, returns null.

getImplicitTag

public Tag getImplicitTag()

getTemplate

public ASN1Template getTemplate()
Returns the template for this element.

isOptional

public boolean isOptional()

tagMatch

public boolean tagMatch(Tag tag)
Determines whether the given tag satisfies this SET element.