Package com.hazelcast.security

Examples of com.hazelcast.security.Credentials


        operationService.send(new ConfigMismatchOperation(msg), target);
    }

    private void checkSecureLogin(JoinRequest joinRequest, MemberInfo newMemberInfo) {
        if (node.securityContext != null && !setJoins.contains(newMemberInfo)) {
            Credentials cr = joinRequest.getCredentials();
            if (cr == null) {
                throw new SecurityException("Expecting security credentials " +
                        "but credentials could not be found in JoinRequest!");
            }

            try {
                LoginContext lc = node.securityContext.createMemberLoginContext(cr);
                lc.login();
            } catch (LoginException e) {
                throw new SecurityException(
                        "Authentication has failed for " + cr.getPrincipal() + '@' + cr.getEndpoint()
                                + " => (" + e.getMessage() + ")");
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.security.Credentials

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.