Examples of JSSSOSiteRemoteUser


Examples of org.apache.jetspeed.serializer.objects.JSSSOSiteRemoteUser

                    rupPrincipalName = names[0];
                    rupName = names[1];
                }
                if ((rupPrincipalType != null) && (rupPrincipalName != null) && (rupPrincipalName.length() > 0) && (rupName != null) && (rupName.length() > 0))
                {
                    JSSSOSiteRemoteUser siteRemoteUser = new JSSSOSiteRemoteUser();
                    siteRemoteUser.setPrincipalName(rupPrincipalName);
                    siteRemoteUser.setPrincipalType(rupPrincipalType);
                    siteRemoteUser.setUserCredential(rupName, rupCredential.getValue().toCharArray());
                    site.addRemoteUser(siteRemoteUser);
                }
            }
        }
           
View Full Code Here

Examples of org.apache.jetspeed.serializer.objects.JSSSOSiteRemoteUser

        if (site.getRemoteUsers() != null)
        {
            Iterator ruIter = site.getRemoteUsers().iterator();
            while (ruIter.hasNext())
            {
                JSSSOSiteRemoteUser rUser = (JSSSOSiteRemoteUser)ruIter.next();
                if (rUser.getPassword() != null)
                {
                    String pName = rUser.getPrincipalName();
                    String pFullPath = "/"+rUser.getPrincipalType()+"/"+pName;
                    String rName = rUser.getName();
                    String rPassword = new String(rUser.getPassword());
                    ssoProvider.addCredentialsForSite(s, pFullPath, pName, rName, rPassword);
                }
            }
        }
       
View Full Code Here

Examples of org.apache.jetspeed.serializer.objects.JSSSOSiteRemoteUser

                    }
                }
                if ((rupName != null) && (rupType != null))
                {
                    String ruPassword = SSOUtils.scramble(ruCredential.getPassword());
                    JSSSOSiteRemoteUser siteRemoteUser = new JSSSOSiteRemoteUser();
                    siteRemoteUser.setPrincipalName(rupName);
                    siteRemoteUser.setPrincipalType(rupType);
                    siteRemoteUser.setUserCredential(ruName, ruPassword.toCharArray());
                    site.addRemoteUser(siteRemoteUser);
                }
            }
        }
View Full Code Here

Examples of org.apache.jetspeed.serializer.objects.JSSSOSiteRemoteUser

        if (site.getRemoteUsers() != null)
        {
            Iterator<JSSSOSiteRemoteUser> ruIter = site.getRemoteUsers().iterator();
            while (ruIter.hasNext())
            {
                JSSSOSiteRemoteUser rUser = ruIter.next();
                if (rUser.getPassword() != null)
                {
                    String pName = rUser.getPrincipalName();
                    String pType = rUser.getPrincipalType();
                    JetspeedPrincipal principal = null;
                    if (pType.equals("user"))
                    {
                        principal = userManager.getUser(pName);
                    }
                    else if (pType.equals("group"))
                    {
                        principal = groupManager.getGroup(pName);
                    }
                    if (principal != null)
                    {
                        String rName = rUser.getName();
                        String rPassword = new String(rUser.getPassword());
                        ssoManager.addUser(s, principal, rName, SSOUtils.unscramble(rPassword));
                    }
                    else
                    {
                        throw new IllegalArgumentException("Cannot lookup or create SSO remote user for principal "+pType+":"+pName);
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.