All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.agent.auth.TokenValidationMethod Maven / Gradle / Ivy

There is a newer version: 13.4
Show newest version
package com.wavefront.agent.auth;

/**
 * Auth validation methods supported.
 *
 * @author [email protected]
 */
public enum TokenValidationMethod {
  NONE,
  STATIC_TOKEN,
  HTTP_GET,
  OAUTH2;

  public static TokenValidationMethod fromString(String name) {
    for (TokenValidationMethod method : TokenValidationMethod.values()) {
      if (method.toString().equalsIgnoreCase(name)) {
        return method;
      }
    }
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy