Package org.wildfly.security.asn1
Class OidsUtil
- java.lang.Object
-
- org.wildfly.security.asn1.OidsUtil
-
public class OidsUtil extends Object
OIDs to attribute name and back conversion utility. Use oids.properties file to map each other.- Author:
- Jan Kalina
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OidsUtil.Category
Category of mapping - determine context of the mapping
-
Constructor Summary
Constructors Constructor Description OidsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
attributeNameToOid(OidsUtil.Category category, String attributeName)
Convert an X.500 attribute name (AVA keyword) to OIDstatic String
oidToAttributeName(OidsUtil.Category category, String oid)
Convert an X.500 attribute name (AVA keyword) to OID
-
-
-
Method Detail
-
attributeNameToOid
public static String attributeNameToOid(OidsUtil.Category category, String attributeName)
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
null
if was not recognized
-
oidToAttributeName
public static String oidToAttributeName(OidsUtil.Category category, String oid)
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
null
if was not recognized
-
-