public class UTF8Pairs extends AttributeTypeAndValue implements ASN1Type
id-regInfo-utf8Pairs OBJECT IDENTIFIER ::= { id-regInfo 1 }
--with syntax
UTF8Pairs ::= UTF8String
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY DEFINED BY type
}
For examples on the suggested use of this regInfo, please refer to RFC 2511 Appendix B.
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for a UTF8Pairs regInfo.
|
m_type, m_value| Constructor and Description |
|---|
UTF8Pairs(ASN1Object obj)
Creates a new
UTF8Pairs regInfo object from an
ASN1Object. |
UTF8Pairs(java.lang.String utf8Pairs)
Creates a new
UTF8Pairs regInfo object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an UTF8Pairs regInfo structure from an
ASN1Object. |
java.lang.String |
getUTF8Pairs()
Returns the UTF8-pairs value.
|
ASN1Object |
toASN1Object()
Encodes this
UTF8Pairs regInfo object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
UTF8Pairs regInfo object. |
getType, getValuepublic static final ObjectID oid
public UTF8Pairs(java.lang.String utf8Pairs)
UTF8Pairs regInfo object with the specified
component.utf8Pairs - the UTF8-pairs valuepublic UTF8Pairs(ASN1Object obj) throws CodingException
UTF8Pairs regInfo object from an
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1 UTF8Pairs
structure.obj - the ASN.1 representation of a UTF8Pairs regInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.lang.String getUTF8Pairs()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be a complete ASN.1 AttributeTypeAndValue
structure, not simply an ASN.1 UTF8Pairs structure.decode in interface ASN1Typedecode in class AttributeTypeAndValueobj - an ASN.1 representation of a UTF8Pairs regInfo structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
UTF8Pairs regInfo object as an
ASN1Object. The encoding produces a complete ASN.1
AttributeTypeAndValue structure, not simply an ASN.1 UTF8Pairs structure.
To retrieve only the UTF8Pairs structure use getValue().toASN1Object in interface ASN1TypetoASN1Object in class AttributeTypeAndValuepublic java.lang.String toString()
UTF8Pairs regInfo object.toString in class AttributeTypeAndValue