Class 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
    • Constructor Detail

      • OidsUtil

        public OidsUtil()
    • 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 conversion
        attributeName - 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 conversion
        oid - X.500 attribute OID
        Returns:
        corresponding attribute name or null if was not recognized