public interface SSOUserManager
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(SSOUser user,
JetspeedPrincipal principal)
Adds an association between a SSO user and a Portal principal.
|
SSOUser |
addUser(SSOSite site,
JetspeedPrincipal ownerPrincipal,
String ssoUsername,
String ssoUserPassword)
Adds a SSO user within the given SSO site.
|
PasswordCredential |
getCredentials(SSOUser user)
Retrieves the credentials for a SSO user
|
Collection<JetspeedPrincipal> |
getPortalPrincipals(SSOUser user)
Retrieves all Portal ("local") Principals connected to a given SSO User
|
SSOUser |
getRemoteUser(SSOSite site,
String remoteUserName)
Retrieves a single SSO user, given the SSO user's site and name
|
Collection<SSOUser> |
getRemoteUsers(SSOSite site,
JetspeedPrincipal portalPrincipal)
Retrieves all SSO users related to the Portal principal, for the given site.
|
Collection<SSOUser> |
getRemoteUsers(SSOSite site,
Subject subject)
Retrieves all SSO Users related to this subject, for the given site.
|
Collection<SSOUser> |
getUsersForSite(SSOSite site)
Retrieves all SSO users which belong to a SSO site
|
void |
removeUser(SSOUser remoteUser)
Removes the given SSO user
|
void |
setPassword(SSOUser user,
String password)
Sets the password for a given SSO user
|
void |
updateUser(SSOUser user)
Updates a SSO user
|
SSOUser getRemoteUser(SSOSite site, String remoteUserName)
site
- The SSO SiteremoteUserName
- the name of the SSO userCollection<JetspeedPrincipal> getPortalPrincipals(SSOUser user)
user
- the SSO userCollection<SSOUser> getRemoteUsers(SSOSite site, Subject subject) throws SSOException
site
- the SSO Site for which to fetch the SSO userssubject
- SSOException
Collection<SSOUser> getRemoteUsers(SSOSite site, JetspeedPrincipal portalPrincipal) throws SSOException
site
- the SSO SiteportalPrincipal
- a Portal principalSSOException
PasswordCredential getCredentials(SSOUser user) throws SSOException
user
- the SSO user for which to return the credentialSSOException
Collection<SSOUser> getUsersForSite(SSOSite site) throws SSOException
site
- SSOException
void removeUser(SSOUser remoteUser) throws SSOException
remoteUser
- the SSO user to be removedSSOException
SSOUser addUser(SSOSite site, JetspeedPrincipal ownerPrincipal, String ssoUsername, String ssoUserPassword) throws SSOException
site
- the SSO site for which to add the new userownerPrincipal
- the owner Portal principalssoUsername
- the name of the new userssoUserPassword
- the password of the new userSSOException
void updateUser(SSOUser user) throws SSOException
user
- the SSO user to be updatedSSOException
void addAssociation(SSOUser user, JetspeedPrincipal principal) throws SSOException
user
- a SSO userprincipal
- a Portal principalSSOException
void setPassword(SSOUser user, String password) throws SSOException
user
- the SSO user for which to set the passwordpassword
- the new passwordSSOException
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.