org.talend.esb.sam.agent.serviceclient.EsbSecurityConstants Maven / Gradle / Ivy
package org.talend.esb.sam.agent.serviceclient;
public enum EsbSecurityConstants {
NO("NO"), BASIC("BASIC"), USERNAMETOKEN("USERNAMETOKEN"), SAML("SAML");
String esbSecurity;
private EsbSecurityConstants(String esbSecurity) {
this.esbSecurity = esbSecurity;
}
public static EsbSecurityConstants fromString(String value) {
if (null == value) {
return NO;
}
for (EsbSecurityConstants esbSecurity : EsbSecurityConstants.values()) {
if (esbSecurity.esbSecurity.equals(value)) {
return esbSecurity;
}
}
throw new IllegalArgumentException("Unsupported security value: "
+ value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy