public interface SSOProvider
Utility component to handle SSO requests
Modifier and Type | Method and Description |
---|---|
void |
addCredentialsForSite(SSOSite ssoSite,
Subject subject,
String remoteUser,
String pwd)
Add credentials inside a transaction using existing ssoSite
|
void |
addCredentialsForSite(String fullPath,
String remoteUser,
String site,
String pwd)
addCredentialsForSite()
|
void |
addCredentialsForSite(Subject subject,
String remoteUser,
String site,
String pwd) |
void |
addSite(String siteName,
String siteUrl) |
void |
addSiteChallengeResponse(String siteName,
String siteUrl,
String realm)
Add a new site that uses Challenge / Response Authentication
|
void |
addSiteFormAuthenticated(String siteName,
String siteUrl,
String realm,
String userField,
String pwdField)
Add a new site that uses Form Authentication
|
Collection |
getCookiesForUser(String fullPath)
Retrive cookies for an user by User full path
|
Collection |
getCookiesForUser(Subject user)
Retrive Cookies by Subject
|
SSOContext |
getCredentials(Subject subject,
String site) |
List |
getPrincipalsForSite(SSOSite site)
return a list of SSOContext objects containing
both the portal principal, remote principal, and credentials
|
String |
getRealmForSite(String site) |
SSOSite |
getSite(String siteUrl) |
String |
getSiteName(String site) |
Iterator |
getSites(String filter) |
Collection |
getSitesForPrincipal(String userId)
Get all SSOSites that the principal has access to
|
String |
getSiteURL(String site) |
boolean |
hasSSOCredentials(Subject subject,
String site)
Public API's for SSO functinality
|
void |
removeCredentialsForSite(String fullPath,
String site)
removeCredentialsForSite()
|
void |
removeCredentialsForSite(Subject subject,
String site) |
void |
removeSite(SSOSite site) |
void |
setRealmForSite(String site,
String realm) |
void |
updateCredentialsForSite(Subject subject,
String remoteUser,
String site,
String pwd) |
void |
updateSite(SSOSite site) |
String |
useSSO(SSOUser user,
String url,
String SSOSite,
boolean bRefresh)
This method first authenticates the the SSOSite and then forwards the request
to the destination URL.
|
String |
useSSO(Subject subject,
String url,
boolean bRefresh)
Same as the method above except that the user will be authenticated against all
SSOSites defined for the user before going to the destination site.
|
String useSSO(SSOUser user, String url, String SSOSite, boolean bRefresh) throws SSOException
user
- url
- SSOSite
- bRefresh
- if true it refreshes the proxy connection if false a cached proxy will be usedSSOException
String useSSO(Subject subject, String url, boolean bRefresh) throws SSOException
subject
- url
- bRefresh
- if true it refreshes the proxy connection if false a cached proxy will be usedSSOException
Collection getCookiesForUser(String fullPath)
fullPath
- Collection getCookiesForUser(Subject user)
user
- boolean hasSSOCredentials(Subject subject, String site)
SSOContext getCredentials(Subject subject, String site) throws SSOException
SSOException
void addCredentialsForSite(Subject subject, String remoteUser, String site, String pwd) throws SSOException
SSOException
void updateCredentialsForSite(Subject subject, String remoteUser, String site, String pwd) throws SSOException
SSOException
void removeCredentialsForSite(Subject subject, String site) throws SSOException
SSOException
List getPrincipalsForSite(SSOSite site)
site
- void updateSite(SSOSite site) throws SSOException
SSOException
void addSite(String siteName, String siteUrl) throws SSOException
SSOException
void removeSite(SSOSite site) throws SSOException
SSOException
void addCredentialsForSite(String fullPath, String remoteUser, String site, String pwd) throws SSOException
fullPath
- remoteUser
- site
- pwd
- SSOException
void addCredentialsForSite(SSOSite ssoSite, Subject subject, String remoteUser, String pwd) throws SSOException
ssoSite
- subject
- remoteUser
- pwd
- SSOException
void removeCredentialsForSite(String fullPath, String site) throws SSOException
fullPath
- site
- SSOException
void setRealmForSite(String site, String realm) throws SSOException
SSOException
String getRealmForSite(String site) throws SSOException
SSOException
Collection getSitesForPrincipal(String userId)
userId
- void addSiteChallengeResponse(String siteName, String siteUrl, String realm) throws SSOException
siteName
- siteUrl
- realm
- SSOException
void addSiteFormAuthenticated(String siteName, String siteUrl, String realm, String userField, String pwdField) throws SSOException
siteName
- siteUrl
- realm
- userField
- pwdField
- SSOException
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.