public static ClientSecurityType fromString(String value) {
    for (ClientSecurityType securityType : ClientSecurityType.values()) {
      if (securityType.toString().equalsIgnoreCase(value)) {
        return securityType;
      }
    }
    return LOCAL;
  }
Constructs enum object from string representation
@param value string representation of client security type
@return ClientSecurityType (defaults to LOCAL if not recognized)
ambari-server/src/main/java/org/apache/ambari/server/security/ClientSecurityType.java