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

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