Package org.apache.jetspeed.sso

Examples of org.apache.jetspeed.sso.SSOUser


    }

    public SSOUser addUser(String name, Long domainId, JetspeedPrincipal ownerPrincipal)
            throws SecurityException
    {
        SSOUser user = newUser(name, domainId);
        Set<JetspeedPrincipalAssociationReference> reqAssociations = new HashSet<JetspeedPrincipalAssociationReference>();
        reqAssociations.add(new JetspeedPrincipalAssociationReference(JetspeedPrincipalAssociationReference.Type.TO, ownerPrincipal, IsOwnedByPrincipalAssociationHandler.ASSOCIATION_NAME));
        super.addPrincipal(user, reqAssociations);
        // by default add a relation to the owner
        super.addAssociation(user, ownerPrincipal, IsRemoteIdentityForPrincipalAssociationHandler.ASSOCIATION_NAME);
View Full Code Here


    }

    public SSOUser getUser(String userName, Long domainId)
            throws SecurityException
    {
        SSOUser user = (SSOUser)domainPrincipalAccess.getPrincipal(userName, getPrincipalType(), domainId);
        if (null == user)
        {
            throw new SecurityException(SecurityException.PRINCIPAL_DOES_NOT_EXIST.createScoped(JetspeedPrincipalType.SSO_USER, userName));
        }
        return user;
View Full Code Here

    }

    public SSOUser addUser(SSOSite site, JetspeedPrincipal ownerPrincipal,
            String ssoUsername, String ssoUserPassword) throws SSOException
    {
      SSOUser newUser = null;
        try{
            // step 1. create new SSO user
            newUser = ssoUserManagerSPI.addUser(ssoUsername, site.getSecurityDomainId(), ownerPrincipal);
            // step 2. store new user's credentials
            setPassword(newUser, ssoUserPassword);
View Full Code Here

        site.setFormPwdField(s.getFormPwdField());

        Iterator<SSOUser> ruIter = ssoManager.getUsersForSite(s).iterator();
        while (ruIter.hasNext())
        {
            SSOUser ru = ruIter.next();
            PasswordCredential ruCredential = ssoManager.getCredentials(ru);
            if (ruCredential != null)
            {
                String ruName = ru.getName();
                String rupType = null;
                String rupName = null;
                Collection<JetspeedPrincipal> ruPrincipals = ssoManager.getPortalPrincipals(ru);
                if ((ruPrincipals != null) && !ruPrincipals.isEmpty())
                {
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.sso.SSOUser

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.