| org.apache.jetspeed.sso.SSOProvider
All known Subclasses: org.apache.jetspeed.sso.impl.PersistenceBrokerSSOProvider,
SSOProvider | public interface SSOProvider (Code) | | Utility component to handle SSO requests
author: Roger Ruttimann |
Method Summary | |
void | addCredentialsForSite(Subject subject, String remoteUser, String site, String pwd) | void | addCredentialsForSite(String fullPath, String remoteUser, String site, String pwd) | void | addSite(String siteName, String siteUrl) | public void | addSiteChallengeResponse(String siteName, String siteUrl, String realm) | public void | addSiteFormAuthenticated(String siteName, String siteUrl, String realm, String userField, String pwdField) | Collection | getCookiesForUser(String fullPath) | Collection | getCookiesForUser(Subject user) | SSOContext | getCredentials(Subject subject, String site) | List | getPrincipalsForSite(SSOSite site) | String | getRealmForSite(String site) | SSOSite | getSite(String siteUrl) | String | getSiteName(String site) | String | getSiteURL(String site) | Iterator | getSites(String filter) | public Collection | getSitesForPrincipal(String userId) | boolean | hasSSOCredentials(Subject subject, String site) | void | init() | void | removeCredentialsForSite(Subject subject, String site) | void | removeCredentialsForSite(String fullPath, 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) | public 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. | public 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. |
addSiteChallengeResponse | public void addSiteChallengeResponse(String siteName, String siteUrl, String realm) throws SSOException(Code) | | Add a new site that uses Challenge / Response Authentication
Parameters: siteName - Parameters: siteUrl - Parameters: realm - throws: SSOException - |
addSiteFormAuthenticated | public void addSiteFormAuthenticated(String siteName, String siteUrl, String realm, String userField, String pwdField) throws SSOException(Code) | | Add a new site that uses Form Authentication
Parameters: siteName - Parameters: siteUrl - Parameters: realm - Parameters: userField - Parameters: pwdField - throws: SSOException - |
getCookiesForUser | Collection getCookiesForUser(String fullPath)(Code) | | Retrive cookies for an user by User full path
Parameters: fullPath - |
getPrincipalsForSite | List getPrincipalsForSite(SSOSite site)(Code) | | return a list of SSOContext objects containing
both the portal principal, remote principal, and credentials
Parameters: site - list SSOContext objects |
getSitesForPrincipal | public Collection getSitesForPrincipal(String userId)(Code) | | Get all SSOSites that the principal has access to
Parameters: userId - |
hasSSOCredentials | boolean hasSSOCredentials(Subject subject, String site)(Code) | | Public API's for SSO functinality
|
init | void init() throws Exception(Code) | | Init
Called from the Spring Framework to initialize SSO Provider component
throws: Exception - |
useSSO | public String useSSO(Subject subject, String url, String SSOSite, boolean bRefresh) throws SSOException(Code) | | This method first authenticates the the SSOSite and then forwards the request
to the destination URL. The content will be returned as a string.
If the SSOSite and the url match only one call will be executed since the
authentication will be done while getting the result page.
Parameters: userID - Parameters: url - Parameters: SSOSite - Parameters: bRefresh - if true it refreshes the proxy connection if false a cached proxy will be used throws: SSOException - |
useSSO | public String useSSO(Subject subject, String url, boolean bRefresh) throws SSOException(Code) | | 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.
Parameters: userID - Parameters: url - Parameters: bRefresh - if true it refreshes the proxy connection if false a cached proxy will be used throws: SSOException - |
|
|