Examples of IdentitySession


Examples of org.picketlink.idm.api.IdentitySession

        if (log.isTraceEnabled()) {
            Tools.logMethodIn(log, LogLevel.TRACE, "findUserByName", new Object[] { "userName", userName, "userStatus",
                    userStatus });
        }

        IdentitySession session = service_.getIdentitySession();
        User user = getPopulatedUser(userName, session, userStatus);

        if (log.isTraceEnabled()) {
            Tools.logMethodOut(log, LogLevel.TRACE, "findUserByName", user);
        }
View Full Code Here

Examples of org.picketlink.idm.api.IdentitySession

            authenticated = user.getPassword().equals(password);
        } else {
            try {
                orgService.flush();

                IdentitySession session = service_.getIdentitySession();
                org.picketlink.idm.api.User idmUser = session.getPersistenceManager().findUser(user.getUserName());

                authenticated = session.getAttributesManager().validatePassword(idmUser, password);
            } catch (Exception e) {
                handleException("Cannot authenticate user: " + username + "; ", e);

            }
        }
View Full Code Here

Examples of org.picketlink.idm.api.IdentitySession

        if (log.isTraceEnabled()) {
            Tools.logMethodIn(log, LogLevel.TRACE, "findUserByUniqueAttribute", new Object[] { "findUserByUniqueAttribute",
                    attributeName, attributeValue, userStatus });
        }

        IdentitySession session = service_.getIdentitySession();

        org.picketlink.idm.api.User plUser = null;

        try {
            orgService.flush();

            plUser = session.getAttributesManager().findUserByUniqueAttribute(attributeName, attributeValue);
        } catch (Exception e) {
            handleException("Cannot find user by unique attribute: attrName=" + attributeName + ", attrValue=" + attributeValue
                    + "; ", e);

        }
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.