|
||||||||||
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(SSOSite ssoSite,
javax.security.auth.Subject subject,
java.lang.String remoteUser,
java.lang.String pwd)
Add credentials inside a transaction using existing ssoSite |
void |
addCredentialsForSite(java.lang.String fullPath,
java.lang.String remoteUser,
java.lang.String site,
java.lang.String pwd)
addCredentialsForSite() |
void |
addCredentialsForSite(javax.security.auth.Subject subject,
java.lang.String remoteUser,
java.lang.String site,
java.lang.String pwd)
|
void |
addSite(java.lang.String siteName,
java.lang.String siteUrl)
|
void |
addSiteChallengeResponse(java.lang.String siteName,
java.lang.String siteUrl,
java.lang.String realm)
Add a new site that uses Challenge / Response Authentication |
void |
addSiteFormAuthenticated(java.lang.String siteName,
java.lang.String siteUrl,
java.lang.String realm,
java.lang.String userField,
java.lang.String pwdField)
Add a new site that uses Form Authentication |
java.util.Collection |
getCookiesForUser(java.lang.String fullPath)
Retrive cookies for an user by User full path |
java.util.Collection |
getCookiesForUser(javax.security.auth.Subject user)
Retrive Cookies by Subject |
SSOContext |
getCredentials(javax.security.auth.Subject subject,
java.lang.String site)
|
java.util.List |
getPrincipalsForSite(SSOSite site)
return a list of SSOContext objects containing both the portal principal, remote principal, and credentials |
java.lang.String |
getRealmForSite(java.lang.String site)
|
SSOSite |
getSite(java.lang.String siteUrl)
|
java.lang.String |
getSiteName(java.lang.String site)
|
java.util.Iterator |
getSites(java.lang.String filter)
|
java.util.Collection |
getSitesForPrincipal(java.lang.String userId)
Get all SSOSites that the principal has access to |
java.lang.String |
getSiteURL(java.lang.String site)
|
boolean |
hasSSOCredentials(javax.security.auth.Subject subject,
java.lang.String site)
Public API's for SSO functinality |
void |
removeCredentialsForSite(java.lang.String fullPath,
java.lang.String site)
removeCredentialsForSite() |
void |
removeCredentialsForSite(javax.security.auth.Subject subject,
java.lang.String site)
|
void |
removeSite(SSOSite site)
|
void |
setRealmForSite(java.lang.String site,
java.lang.String realm)
|
void |
updateCredentialsForSite(javax.security.auth.Subject subject,
java.lang.String remoteUser,
java.lang.String site,
java.lang.String pwd)
|
void |
updateSite(SSOSite site)
|
java.lang.String |
useSSO(SSOUser user,
java.lang.String url,
java.lang.String SSOSite,
boolean bRefresh)
This method first authenticates the the SSOSite and then forwards the request to the destination URL. |
java.lang.String |
useSSO(javax.security.auth.Subject subject,
java.lang.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. |
Method Detail |
---|
java.lang.String useSSO(SSOUser user, java.lang.String url, java.lang.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
java.lang.String useSSO(javax.security.auth.Subject subject, java.lang.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
java.util.Collection getCookiesForUser(java.lang.String fullPath)
fullPath
-
java.util.Collection getCookiesForUser(javax.security.auth.Subject user)
user
-
boolean hasSSOCredentials(javax.security.auth.Subject subject, java.lang.String site)
SSOContext getCredentials(javax.security.auth.Subject subject, java.lang.String site) throws SSOException
SSOException
void addCredentialsForSite(javax.security.auth.Subject subject, java.lang.String remoteUser, java.lang.String site, java.lang.String pwd) throws SSOException
SSOException
void updateCredentialsForSite(javax.security.auth.Subject subject, java.lang.String remoteUser, java.lang.String site, java.lang.String pwd) throws SSOException
SSOException
void removeCredentialsForSite(javax.security.auth.Subject subject, java.lang.String site) throws SSOException
SSOException
java.util.List getPrincipalsForSite(SSOSite site)
site
-
java.util.Iterator getSites(java.lang.String filter)
SSOSite getSite(java.lang.String siteUrl)
void updateSite(SSOSite site) throws SSOException
SSOException
void addSite(java.lang.String siteName, java.lang.String siteUrl) throws SSOException
SSOException
void removeSite(SSOSite site) throws SSOException
SSOException
void addCredentialsForSite(java.lang.String fullPath, java.lang.String remoteUser, java.lang.String site, java.lang.String pwd) throws SSOException
fullPath
- remoteUser
- site
- pwd
-
SSOException
void addCredentialsForSite(SSOSite ssoSite, javax.security.auth.Subject subject, java.lang.String remoteUser, java.lang.String pwd) throws SSOException
ssoSite
- subject
- remoteUser
- pwd
-
SSOException
void removeCredentialsForSite(java.lang.String fullPath, java.lang.String site) throws SSOException
fullPath
- site
-
SSOException
java.lang.String getSiteURL(java.lang.String site)
java.lang.String getSiteName(java.lang.String site)
void setRealmForSite(java.lang.String site, java.lang.String realm) throws SSOException
SSOException
java.lang.String getRealmForSite(java.lang.String site) throws SSOException
SSOException
java.util.Collection getSitesForPrincipal(java.lang.String userId)
userId
-
void addSiteChallengeResponse(java.lang.String siteName, java.lang.String siteUrl, java.lang.String realm) throws SSOException
siteName
- siteUrl
- realm
-
SSOException
void addSiteFormAuthenticated(java.lang.String siteName, java.lang.String siteUrl, java.lang.String realm, java.lang.String userField, java.lang.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 |