org.mozilla.jss.pkix.primitive

Class AVA

Implemented Interfaces:
ASN1Value
Known Direct Subclasses:
Control

public class AVA
extends java.lang.Object
implements ASN1Value

An AttributeValueAssertion, which has the following ASN.1 definition (roughly):
      AttributeValueAssertion ::= SEQUENCE {
          type        OBJECT IDENTIFIER,
          value       ANY DEFINED BY type }
 

Nested Class Summary

static class
AVA.Template
A Template for decoding an AVA.

Field Summary

static Tag
TAG

Constructor Summary

AVA(OBJECT_IDENTIFIER oid, ASN1Value value)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicit, OutputStream ostream)
OBJECT_IDENTIFIER
getOID()
Tag
getTag()
ANY
getValue()
Returns the value of this AVA, encoded as an ANY.

Field Details

TAG

public static final Tag TAG

Constructor Details

AVA

public AVA(OBJECT_IDENTIFIER oid,
           ASN1Value value)

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag implicit,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

getOID

public OBJECT_IDENTIFIER getOID()

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value

getValue

public ANY getValue()
Returns the value of this AVA, encoded as an ANY.