Class X500DirectoryAttribute
java.lang.Object
org.wildfly.security.x500.X500DirectoryAttribute
- All Implemented Interfaces:
org.wildfly.security.asn1.ASN1Encodable
public final class X500DirectoryAttribute
extends Object
implements org.wildfly.security.asn1.ASN1Encodable
An X.500 directory attribute, which is comprised of an attribute type OID and zero or more values, whose types are
defined by the attribute type.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionstatic X500DirectoryAttributeConstruct a new instance with no values.static X500DirectoryAttributecreate(String attributeType, Collection<org.wildfly.security.asn1.ASN1Encodable> values) Construct a new instance.static X500DirectoryAttributeConstruct a new instance with one value.static X500DirectoryAttributecreateObjectId(String attributeType, String oid) Construct a new instance with one OID value.static X500DirectoryAttributecreateUtf8(String attributeType, String stringValue) Construct a new instance with one UTF-8 value.voidencodeTo(org.wildfly.security.asn1.ASN1Encoder encoder)
-
Method Details
-
create
public static X500DirectoryAttribute create(String attributeType, Collection<org.wildfly.security.asn1.ASN1Encodable> values) Construct a new instance.- Parameters:
attributeType- the attribute type OID (must not benull)values- the values collection (must not benull)- Returns:
- the directory attribute
-
create
Construct a new instance with no values.- Parameters:
attributeType- the attribute type OID (must not benull)- Returns:
- the directory attribute
-
create
public static X500DirectoryAttribute create(String attributeType, org.wildfly.security.asn1.ASN1Encodable value) Construct a new instance with one value.- Parameters:
attributeType- the attribute type OID (must not benull)value- the single value (must not benull)- Returns:
- the directory attribute
-
createUtf8
Construct a new instance with one UTF-8 value.- Parameters:
attributeType- the attribute type OID (must not benull)stringValue- the string value (must not benull)- Returns:
- the directory attribute
-
createObjectId
Construct a new instance with one OID value.- Parameters:
attributeType- the attribute type OID (must not benull)oid- the OID (must not benull)- Returns:
- the directory attribute
-
encodeTo
public void encodeTo(org.wildfly.security.asn1.ASN1Encoder encoder) - Specified by:
encodeToin interfaceorg.wildfly.security.asn1.ASN1Encodable
-