public static PublicKeySelector fromString(String type){
  if (type != null) {
    for (    PublicKeySelector keySelector : PublicKeySelector.values()) {
      if (type.equalsIgnoreCase(keySelector.type)) {
        return keySelector;
      }
    }
  }
  return null;
}

public static PublicKeySelector fromString ( String type ) { if ( type != null ) { for ( PublicKeySelector keySelector : PublicKeySelector . values ( ) ) { if ( type . equalsIgnoreCase ( keySelector . type ) ) { return keySelector ; } } } return null ; }
translates a string into a token endpoint auth method type .
