com.wavefront.agent.auth.TokenValidationMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy Show documentation
Show all versions of proxy Show documentation
Service for batching and relaying metric traffic to Wavefront
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