org.mozilla.jss.pkix.primitive
Class Attribute
java.lang.Object
org.mozilla.jss.pkix.primitive.Attribute
- ASN1Value
public class Attribute
extends java.lang.Object
An Attribute, which has the following ASN.1
definition (roughly):
Attribute ::= SEQUENCE {
type OBJECT IDENTIFIER,
value SET }
void | 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.
|
Tag | getTag() - Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
|
static Attribute.Template | getTemplate()
|
OBJECT_IDENTIFIER | getType()
|
SET | getValues() - If this AVA was constructed, returns the SET of ASN1Values passed to the
constructor.
|
TAG
public static final Tag TAG
encode
public void encode(OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
its own base tag.
- encode in interface ASN1Value
encode
public void encode(Tag implicit,
OutputStream ostream)
throws IOException
Write this value's DER encoding to an output stream using
an implicit tag.
- encode in interface ASN1Value
getTag
public Tag getTag()
Returns the base tag for this type, not counting any tags
that may be imposed on it by its context.
- getTag in interface ASN1Value
getValues
public SET getValues()
If this AVA was constructed, returns the SET of ASN1Values passed to the
constructor. If this Atrribute was decoded with an Attribute.Template,
returns a SET of ANYs.