|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport org.apache.jetspeed.sso.impl.PersistenceBrokerSSOProvider
public class PersistenceBrokerSSOProvider
Utility component to handle SSO requests
Field Summary | |
---|---|
private Hashtable |
clientProxy
|
private String |
GROUP_PATH
|
private static org.apache.commons.logging.Log |
log
|
private Hashtable |
mapSite
|
(package private) static char[] |
scrambler
|
private String |
USER_PATH
|
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
repositoryPath |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
PersistenceBrokerSSOProvider(String repositoryPath)
PersitenceBrokerSSOProvider() |
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 ChallengeResponse Authentication |
void |
addSiteFormAuthenticated(String siteName,
String siteUrl,
String realm,
String userField,
String pwdField)
Add a new site that uses Form Authentication |
private org.apache.jetspeed.security.om.InternalUserPrincipal |
findRemoteMatch(Collection remoteForPrincipals,
Collection remoteForSite)
removeRemotePrincipalForPrincipal |
private String |
getContentFromURL(String proxyID,
String destUrl,
org.apache.jetspeed.sso.SSOSite[] sites,
boolean bRefresh)
|
Collection |
getCookiesForUser(String fullPath)
Retrive cookies for an user by User full path |
Collection |
getCookiesForUser(Subject user)
Retrive Cookies by Subject |
private org.apache.jetspeed.sso.SSOContext |
getCredential(org.apache.jetspeed.sso.SSOSite ssoSite,
String fullPath)
|
org.apache.jetspeed.sso.SSOContext |
getCredentials(Subject subject,
String site)
|
private org.apache.jetspeed.security.om.InternalGroupPrincipal |
getGroupPrincipals(String principalFullPath)
|
private org.apache.jetspeed.sso.SSOPrincipal |
getPrincipalForSite(org.apache.jetspeed.sso.SSOSite ssoSite,
String fullPath)
|
List |
getPrincipalsForSite(org.apache.jetspeed.sso.SSOSite site)
|
String |
getRealmForSite(String site)
|
private Collection |
getRemotePrincipalsForPrincipal(Collection principalsForSite,
String fullPath)
|
org.apache.jetspeed.sso.SSOSite |
getSite(String siteUrl)
|
String |
getSiteName(String site)
getSiteName |
Iterator |
getSites(String filter)
|
Collection |
getSitesForPrincipal(String fullPath)
Get all SSOSites that the principal has access to |
String |
getSiteURL(String site)
Retrive site information getSiteURL |
private org.apache.jetspeed.sso.SSOPrincipal |
getSSOPrincipal(String fullPath)
|
private org.apache.jetspeed.sso.SSOSite |
getSSOSiteObject(String site)
|
boolean |
hasSSOCredentials(Subject subject,
String site)
|
void |
removeCredentialsForSite(String fullPath,
String site)
removeCredentialsForSite() |
void |
removeCredentialsForSite(Subject subject,
String site)
|
void |
removeSite(org.apache.jetspeed.sso.SSOSite site)
|
private String |
scramble(String pwd)
|
void |
setRealmForSite(String site,
String realm)
|
private String |
stripPortalPrincipalName(String fullPath)
|
private String |
stripPrincipalName(String fullPath)
|
private String |
unscramble(String pwd)
|
void |
updateCredentialsForSite(Subject subject,
String remoteUser,
String site,
String pwd)
updateCredentialsForSite |
void |
updateSite(org.apache.jetspeed.sso.SSOSite site)
|
String |
useSSO(Subject subject,
String url,
boolean bRefresh)
|
String |
useSSO(Subject subject,
String url,
String SSOSite,
boolean bRefresh)
|
private char[] |
xor(char[] a,
char[] b)
|
Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
---|
init |
Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
---|
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jetspeed.sso.SSOProvider |
---|
init |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private Hashtable mapSite
private Hashtable clientProxy
private String USER_PATH
private String GROUP_PATH
static char[] scrambler
Constructor Detail |
---|
public PersistenceBrokerSSOProvider(String repositoryPath) throws ClassNotFoundException
repository
- Location of repository mapping file. Must be available within the classpath.prefsFactoryImpl
- java.util.prefs.PreferencesFactory
implementation to use.enablePropertyManager
- Whether or not we chould be suing the property manager.
ClassNotFoundException
- if the prefsFactoryImpl
argument does not reperesent
a Class that exists in the current classPath.Method Detail |
---|
public String useSSO(Subject subject, String url, String SSOSite, boolean bRefresh) throws org.apache.jetspeed.sso.SSOException
useSSO
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public String useSSO(Subject subject, String url, boolean bRefresh) throws org.apache.jetspeed.sso.SSOException
useSSO
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public Collection getCookiesForUser(String fullPath)
getCookiesForUser
in interface org.apache.jetspeed.sso.SSOProvider
fullPath
-
public Collection getCookiesForUser(Subject user)
getCookiesForUser
in interface org.apache.jetspeed.sso.SSOProvider
user
-
public void setRealmForSite(String site, String realm) throws org.apache.jetspeed.sso.SSOException
setRealmForSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public String getRealmForSite(String site) throws org.apache.jetspeed.sso.SSOException
getRealmForSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public Collection getSitesForPrincipal(String fullPath)
getSitesForPrincipal
in interface org.apache.jetspeed.sso.SSOProvider
userId
-
public Iterator getSites(String filter)
getSites
in interface org.apache.jetspeed.sso.SSOProvider
public void addCredentialsForSite(String fullPath, String remoteUser, String site, String pwd) throws org.apache.jetspeed.sso.SSOException
addCredentialsForSite
in interface org.apache.jetspeed.sso.SSOProvider
fullPath
- remoteUser
- site
- pwd
-
org.apache.jetspeed.sso.SSOException
public void removeCredentialsForSite(String fullPath, String site) throws org.apache.jetspeed.sso.SSOException
removeCredentialsForSite
in interface org.apache.jetspeed.sso.SSOProvider
fullPath
- site
-
org.apache.jetspeed.sso.SSOException
public String getSiteURL(String site)
getSiteURL
in interface org.apache.jetspeed.sso.SSOProvider
public String getSiteName(String site)
getSiteName
in interface org.apache.jetspeed.sso.SSOProvider
public boolean hasSSOCredentials(Subject subject, String site)
hasSSOCredentials
in interface org.apache.jetspeed.sso.SSOProvider
public org.apache.jetspeed.sso.SSOContext getCredentials(Subject subject, String site) throws org.apache.jetspeed.sso.SSOException
getCredentials
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public void addCredentialsForSite(Subject subject, String remoteUser, String site, String pwd) throws org.apache.jetspeed.sso.SSOException
addCredentialsForSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public void removeCredentialsForSite(Subject subject, String site) throws org.apache.jetspeed.sso.SSOException
removeCredentialsForSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public void updateCredentialsForSite(Subject subject, String remoteUser, String site, String pwd) throws org.apache.jetspeed.sso.SSOException
updateCredentialsForSite
in interface org.apache.jetspeed.sso.SSOProvider
subject
- Current subjectremoteUser
- remote user loginsite
- URL or description of sitepwd
- Password for credentail
org.apache.jetspeed.sso.SSOException
private org.apache.jetspeed.sso.SSOSite getSSOSiteObject(String site)
private org.apache.jetspeed.sso.SSOContext getCredential(org.apache.jetspeed.sso.SSOSite ssoSite, String fullPath)
private String stripPrincipalName(String fullPath)
private org.apache.jetspeed.sso.SSOPrincipal getPrincipalForSite(org.apache.jetspeed.sso.SSOSite ssoSite, String fullPath)
private org.apache.jetspeed.sso.SSOPrincipal getSSOPrincipal(String fullPath)
private org.apache.jetspeed.security.om.InternalUserPrincipal findRemoteMatch(Collection remoteForPrincipals, Collection remoteForSite)
site
- fullPath
-
private Collection getRemotePrincipalsForPrincipal(Collection principalsForSite, String fullPath)
public org.apache.jetspeed.sso.SSOSite getSite(String siteUrl)
getSite
in interface org.apache.jetspeed.sso.SSOProvider
public void updateSite(org.apache.jetspeed.sso.SSOSite site) throws org.apache.jetspeed.sso.SSOException
updateSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public void addSiteFormAuthenticated(String siteName, String siteUrl, String realm, String userField, String pwdField) throws org.apache.jetspeed.sso.SSOException
addSiteFormAuthenticated
in interface org.apache.jetspeed.sso.SSOProvider
siteName
- siteUrl
- realm
- userField
- pwdField
-
org.apache.jetspeed.sso.SSOException
public void addSiteChallengeResponse(String siteName, String siteUrl, String realm) throws org.apache.jetspeed.sso.SSOException
addSiteChallengeResponse
in interface org.apache.jetspeed.sso.SSOProvider
siteName
- siteUrl
- realm
-
org.apache.jetspeed.sso.SSOException
public void addSite(String siteName, String siteUrl) throws org.apache.jetspeed.sso.SSOException
addSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public void removeSite(org.apache.jetspeed.sso.SSOSite site) throws org.apache.jetspeed.sso.SSOException
removeSite
in interface org.apache.jetspeed.sso.SSOProvider
org.apache.jetspeed.sso.SSOException
public List getPrincipalsForSite(org.apache.jetspeed.sso.SSOSite site)
getPrincipalsForSite
in interface org.apache.jetspeed.sso.SSOProvider
private String stripPortalPrincipalName(String fullPath)
private org.apache.jetspeed.security.om.InternalGroupPrincipal getGroupPrincipals(String principalFullPath)
private String getContentFromURL(String proxyID, String destUrl, org.apache.jetspeed.sso.SSOSite[] sites, boolean bRefresh) throws org.apache.jetspeed.sso.SSOException
org.apache.jetspeed.sso.SSOException
private String scramble(String pwd)
private String unscramble(String pwd)
private char[] xor(char[] a, char[] b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |