Package org.jolokia.jvmagent.security

Examples of org.jolokia.jvmagent.security.JaasAuthenticator


            String authMode = jolokiaConfig.get(ConfigKey.AUTH_MODE);
            String realm = jolokiaConfig.get(ConfigKey.REALM);
            if ("basic".equalsIgnoreCase(authMode)) {
                authenticator = new UserPasswordAuthenticator(realm,user,password);
            } else if ("jaas".equalsIgnoreCase(authMode)) {
                authenticator = new JaasAuthenticator(realm);
            } else {
                throw new IllegalArgumentException("No auth method '" + authMode + "' known. " +
                                                   "Must be either 'basic' or 'jaas'");
            }
        } else {
View Full Code Here

TOP

Related Classes of org.jolokia.jvmagent.security.JaasAuthenticator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.