org.mozilla.jss.pkix.cmc
Class TaggedAttribute
java.lang.Object
org.mozilla.jss.pkix.cmc.TaggedAttribute
- ASN1Value
public class TaggedAttribute
extends java.lang.Object
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)
BODYIDMAX
public static final INTEGER BODYIDMAX
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
getBodyPartID
public INTEGER getBodyPartID()
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.