org.mozilla.jss.pkix.cmc

Class TaggedAttribute

public class TaggedAttribute extends Object implements ASN1Value

A tagged attribute, which has the following ASN.1 definition :
   TaggedAttribute ::= SEQUENCE {
      bodyPartID         BodyPartId, 
      attrType           OBJECT IDENTIFIER, 
      attrValues         SET OF AttributeValue 
   bodyIdMax INTEGER ::= 4294967295

   BodyPartID ::= INTEGER(0..bodyIdMax)
 
Nested Class Summary
static classTaggedAttribute.Template
A Template for decoding an Attribute.
Field Summary
static INTEGERBODYIDMAX
static TagTAG
Constructor Summary
TaggedAttribute(INTEGER bodyPartID, OBJECT_IDENTIFIER type, SET values)
TaggedAttribute(INTEGER bodyPartID, OBJECT_IDENTIFIER type, ASN1Value value)
Method Summary
voidencode(OutputStream ostream)
voidencode(Tag implicit, OutputStream ostream)
INTEGERgetBodyPartID()
TaggetTag()
static TaggedAttribute.TemplategetTemplate()
OBJECT_IDENTIFIERgetType()
SETgetValues()
If this AVA was constructed, returns the SET of ASN1Values passed to the constructor.

Field Detail

BODYIDMAX

public static final INTEGER BODYIDMAX

TAG

public static final Tag TAG

Constructor Detail

TaggedAttribute

public TaggedAttribute(INTEGER bodyPartID, OBJECT_IDENTIFIER type, SET values)

TaggedAttribute

public TaggedAttribute(INTEGER bodyPartID, OBJECT_IDENTIFIER type, ASN1Value value)

Method Detail

encode

public void encode(OutputStream ostream)

encode

public void encode(Tag implicit, OutputStream ostream)

getBodyPartID

public INTEGER getBodyPartID()

getTag

public Tag getTag()

getTemplate

public static TaggedAttribute.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.