org.mozilla.jss.pkix.primitive

Class Attribute

public class Attribute extends Object implements ASN1Value

An Attribute, which has the following ASN.1 definition (roughly):
      Attribute ::= SEQUENCE {
          type        OBJECT IDENTIFIER,
          value       SET }
 
Nested Class Summary
static classAttribute.Template
A Template for decoding an Attribute.
Field Summary
static TagTAG
Constructor Summary
Attribute(OBJECT_IDENTIFIER type, SET values)
Attribute(OBJECT_IDENTIFIER type, ASN1Value value)
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicit, OutputStream ostream)
TaggetTag()
static Attribute.TemplategetTemplate()
OBJECT_IDENTIFIERgetType()
SETgetValues()
If this AVA was constructed, returns the SET of ASN1Values passed to the constructor.

Field Detail

TAG

public static final Tag TAG

Constructor Detail

Attribute

public Attribute(OBJECT_IDENTIFIER type, SET values)

Attribute

public Attribute(OBJECT_IDENTIFIER type, ASN1Value value)

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicit, OutputStream ostream)

getTag

public Tag getTag()

getTemplate

public static Attribute.Template getTemplate()

getType

public OBJECT_IDENTIFIER getType()

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.