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

org.talend.esb.sam.agent.serviceclient.EsbSecurityConstants Maven / Gradle / Ivy

There is a newer version: 8.0.1.R2024-05-RT
Show newest version
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