public class AttributeTypeAndValue extends java.lang.Object implements ASN1Type
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY DEFINED BY type
}
| Modifier and Type | Field and Description |
|---|---|
protected ObjectID |
m_type
An object identifier for the attribute.
|
protected ASN1Object |
m_value
The actual attribute value.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AttributeTypeAndValue()
This is the default constructor.
|
|
AttributeTypeAndValue(ASN1Object obj)
Creates a new
AttributeTypeAndValue object from an
ASN1Object. |
|
AttributeTypeAndValue(ObjectID type,
ASN1Object value)
Creates a new
AttributeTypeAndValue object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an AttributeTypeAndValue structure from an
ASN1Object. |
ObjectID |
getType()
Returns the object identifier for the attribute.
|
ASN1Object |
getValue()
Returns actual attribute value.
|
ASN1Object |
toASN1Object()
Encodes this
AttributeTypeAndValue object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
AttributeTypeAndValue object. |
protected ObjectID m_type
protected ASN1Object m_value
protected AttributeTypeAndValue()
AttributeTypeAndValue sub-classes, and is not intended for
any other use.public AttributeTypeAndValue(ObjectID type, ASN1Object value)
AttributeTypeAndValue object with the specified
components.type - an object identifier for the attributevalue - the actual attribute valuepublic AttributeTypeAndValue(ASN1Object obj) throws CodingException
AttributeTypeAndValue object from an
ASN1Object.obj - the ASN.1 representation of an AttributeTypeAndValue structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ObjectID getType()
public ASN1Object getValue()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of an AttributeTypeAndValue structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
AttributeTypeAndValue object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
AttributeTypeAndValue object.toString in class java.lang.Object