Package org.wildfly.security.asn1
Class OidsUtil
java.lang.Object
org.wildfly.security.asn1.OidsUtil
OIDs to attribute name and back conversion utility.
Use oids.properties file to map each other.
- Author:
- Jan Kalina
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCategory of mapping - determine context of the mapping -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringattributeNameToOid(OidsUtil.Category category, String attributeName) Convert an X.500 attribute name (AVA keyword) to OIDstatic StringoidToAttributeName(OidsUtil.Category category, String oid) Convert an X.500 attribute name (AVA keyword) to OID
-
Constructor Details
-
OidsUtil
public OidsUtil()
-
-
Method Details
-
attributeNameToOid
Convert an X.500 attribute name (AVA keyword) to OID- Parameters:
category- category of OID / context of the conversionattributeName- X.500 attribute name- Returns:
- corresponding OID or
nullif was not recognized
-
oidToAttributeName
Convert an X.500 attribute name (AVA keyword) to OID- Parameters:
category- category of OID / context of the conversionoid- X.500 attribute OID- Returns:
- corresponding attribute name or
nullif was not recognized
-