|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.portal.services.impl.PortalSecurityManagerImpl
public class PortalSecurityManagerImpl
The security manager coordinates access to various security plugins when cross plugin awareness is required, and executes some server side logic required for features such as single sign-on.
| Constructor Summary | |
|---|---|
PortalSecurityManagerImpl()
Basic constructor, should be run automatically by Tapestry. |
|
| Method Summary | |
|---|---|
AccessControlManager |
getAccessControlManager()
Return the Access Control Manager |
AuthManager |
getAuthManager()
Return the Authentication Manager |
RolesManager |
getRoleManager()
Return the Role Manager |
String[] |
getRolesList(JsonSessionState session,
User user)
Get the list of roles possessed by the current user. |
User |
getUser(JsonSessionState session,
String username,
String source)
Retrieve the details of a user by username |
void |
logout(JsonSessionState session,
User user)
Logout the provided user |
boolean |
runSsoIntegration(JsonSessionState session,
FormData formData)
Wrapper method for other SSO methods provided by the security manager. |
Map<String,Map<String,String>> |
ssoBuildLogonInterface(JsonSessionState session)
Build a Map of Maps of on-screen string values for each SSO provider. |
boolean |
ssoCheckUserDetails(JsonSessionState session)
Get user details from SSO connection and set them in the user session. |
String |
ssoGetRemoteLogonURL(JsonSessionState session,
String source)
Retrieve the login URL for redirection against a given provider. |
String |
ssoInit(JsonSessionState session)
Initialize the SSO Service, prepare a login if required |
boolean |
testForSso(JsonSessionState session,
String resource,
String uri)
Given the provided resource, test whether SSO should be 'aware' of this resource. |
boolean |
testTrustToken(JsonSessionState session,
String token)
Validate the provided trust token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortalSecurityManagerImpl()
throws IOException
IOException| Method Detail |
|---|
public AccessControlManager getAccessControlManager()
getAccessControlManager in interface PortalSecurityManagerpublic AuthManager getAuthManager()
getAuthManager in interface PortalSecurityManagerpublic RolesManager getRoleManager()
getRoleManager in interface PortalSecurityManager
public String[] getRolesList(JsonSessionState session,
User user)
getRolesList in interface PortalSecurityManageruser - The user object of the current user
public User getUser(JsonSessionState session,
String username,
String source)
throws AuthenticationException
getUser in interface PortalSecurityManagerusername - The username of a user to retrievesource - The authentication source if known
AuthenticationException - if any errors occur
public void logout(JsonSessionState session,
User user)
throws AuthenticationException
logout in interface PortalSecurityManagerAuthenticationException
public boolean runSsoIntegration(JsonSessionState session,
FormData formData)
runSsoIntegration in interface PortalSecurityManagersession - : The session of the current requestformData - : FormData object for the current request
public String ssoInit(JsonSessionState session)
throws Exception
ssoInit in interface PortalSecurityManagersession - The server session data
Exception - if any errors occurpublic boolean ssoCheckUserDetails(JsonSessionState session)
ssoCheckUserDetails in interface PortalSecurityManagerpublic Map<String,Map<String,String>> ssoBuildLogonInterface(JsonSessionState session)
ssoBuildLogonInterface in interface PortalSecurityManager
public String ssoGetRemoteLogonURL(JsonSessionState session,
String source)
ssoGetRemoteLogonURL in interface PortalSecurityManagerString - The SSO source to use
public boolean testForSso(JsonSessionState session,
String resource,
String uri)
testForSso in interface PortalSecurityManagersession - : The session for this requestresource - : The name of the resource being accesseduri - : The full URI of the resource if simple matches fail
public boolean testTrustToken(JsonSessionState session,
String token)
testTrustToken in interface PortalSecurityManagertoken - : The token to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||