Package be.c4j.ee.security.realm

Examples of be.c4j.ee.security.realm.AuthenticationInfoBuilder.build()


        AuthenticationInfoBuilder authenticationInfoBuilder = new AuthenticationInfoBuilder();
        authenticationInfoBuilder.principalId(principalId++).name(token.getPrincipal().toString());
        // TODO: Change for production. Here we use username as password
        authenticationInfoBuilder.realmName("MyApp").password(token.getPrincipal());

        return authenticationInfoBuilder.build();
    }


    @Override
    public AuthorizationInfo getAuthorizationInfo(PrincipalCollection principals) {
View Full Code Here


            if (principal.getEmployee().getManager() != null) {
                authenticationInfoBuilder.addUserInfo(UserInfo.MANAGER_EMPLOYEE_ID, principal.getEmployee().getManager().getId());
            }


            return authenticationInfoBuilder.build();
        }
    }


    @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.