|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSOProvider
Utility component to handle SSO requests
Method Summary | |
---|---|
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 |
init()
Init Called from the Spring Framework to initialize SSO Provider component |
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(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(Subject subject,
String url,
String SSOSite,
boolean bRefresh)
This method first authenticates the the SSOSite and then forwards the request to the destination URL. |
Method Detail |
---|
void init() throws Exception
Exception
String useSSO(Subject subject, String url, String SSOSite, boolean bRefresh) throws SSOException
userID
- url
- SSOSite
- bRefresh
- if true it refreshes the proxy connection if false a cached proxy will be used
SSOException
String useSSO(Subject subject, String url, boolean bRefresh) throws SSOException
userID
- url
- bRefresh
- if true it refreshes the proxy connection if false a cached proxy will be used
SSOException
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
-
Iterator getSites(String filter)
SSOSite getSite(String siteUrl)
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 removeCredentialsForSite(String fullPath, String site) throws SSOException
fullPath
- site
-
SSOException
String getSiteURL(String site)
String getSiteName(String site)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |