public final class AttributeTypeAndValue extends Object
| Modifier and Type | Field and Description |
|---|---|
static ASN1Sequence |
ASN1 |
static ASN1Type |
attributeValue
According to RFC 3280 (http://www.ietf.org/rfc/rfc3280.txt)
X.501 AttributeTypeAndValue structure is defined as follows:
AttributeTypeAndValue ::= SEQUENCE {
type AttributeType,
value AttributeValue }
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= ANY DEFINED BY AttributeType
...
|
static ObjectIdentifier |
DC
Domain component attribute (name from RFC 2253)
|
static ObjectIdentifier |
EMAILADDRESS
Email Address attribute (name from API spec)
|
| Constructor and Description |
|---|
AttributeTypeAndValue(ObjectIdentifier oid,
AttributeValue value)
Creates AttributeTypeAndValue with OID and AttributeValue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendName(String attrFormat,
StringBuilder sb)
Appends AttributeTypeAndValue string representation
|
static ObjectIdentifier |
getObjectIdentifier(String sOid)
Parses OID string representation.
|
ObjectIdentifier |
getType()
Gets type of the AttributeTypeAndValue
|
AttributeValue |
getValue() |
public static final ObjectIdentifier DC
public static final ObjectIdentifier EMAILADDRESS
public static final ASN1Type attributeValue
public static final ASN1Sequence ASN1
public AttributeTypeAndValue(ObjectIdentifier oid, AttributeValue value) throws IOException
oid - object identifiervalue - attribute valueIOExceptionpublic static ObjectIdentifier getObjectIdentifier(String sOid) throws IOException
sOid - string representation of OIDIOException - if OID can not be created from its string representationpublic void appendName(String attrFormat, StringBuilder sb)
attrFormat - - format of DNpublic ObjectIdentifier getType()
public AttributeValue getValue()