@Component(value="portalSecurityManager") public class PortalSecurityManagerImpl extends Object implements PortalSecurityManager
| Constructor and Description |
|---|
PortalSecurityManagerImpl()
Basic constructor, should be run automatically by Tapestry.
|
| Modifier and Type | Method and Description |
|---|---|
com.googlecode.fascinator.api.access.AccessControlManager |
getAccessControlManager()
Return the Access Control Manager
|
com.googlecode.fascinator.api.authentication.AuthManager |
getAuthManager()
Return the Authentication Manager
|
com.googlecode.fascinator.api.roles.RolesManager |
getRoleManager()
Return the Role Manager
|
String[] |
getRolesList(JsonSessionState session,
com.googlecode.fascinator.api.authentication.User user)
Get the list of roles possessed by the current user.
|
com.googlecode.fascinator.api.authentication.User |
getUser(JsonSessionState session,
String username,
String source)
Retrieve the details of a user by username
|
void |
logout(JsonSessionState session,
com.googlecode.fascinator.api.authentication.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 |
ssoGetRemoteLogoutURL(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.
|
public PortalSecurityManagerImpl()
throws IOException
IOExceptionpublic com.googlecode.fascinator.api.access.AccessControlManager getAccessControlManager()
getAccessControlManager in interface PortalSecurityManagerpublic com.googlecode.fascinator.api.authentication.AuthManager getAuthManager()
getAuthManager in interface PortalSecurityManagerpublic com.googlecode.fascinator.api.roles.RolesManager getRoleManager()
getRoleManager in interface PortalSecurityManagerpublic String[] getRolesList(JsonSessionState session, com.googlecode.fascinator.api.authentication.User user)
getRolesList in interface PortalSecurityManageruser - The user object of the current userpublic com.googlecode.fascinator.api.authentication.User getUser(JsonSessionState session, String username, String source) throws com.googlecode.fascinator.api.authentication.AuthenticationException
getUser in interface PortalSecurityManagerusername - The username of a user to retrievesource - The authentication source if knowncom.googlecode.fascinator.api.authentication.AuthenticationException - if any errors occurpublic void logout(JsonSessionState session, com.googlecode.fascinator.api.authentication.User user) throws com.googlecode.fascinator.api.authentication.AuthenticationException
logout in interface PortalSecurityManagercom.googlecode.fascinator.api.authentication.AuthenticationExceptionpublic boolean runSsoIntegration(JsonSessionState session, FormData formData)
runSsoIntegration in interface PortalSecurityManagersession - : The session of the current requestformData - : FormData object for the current requestpublic String ssoInit(JsonSessionState session) throws Exception
ssoInit in interface PortalSecurityManagersession - The server session dataException - if any errors occurpublic boolean ssoCheckUserDetails(JsonSessionState session)
ssoCheckUserDetails in interface PortalSecurityManagerpublic Map<String,Map<String,String>> ssoBuildLogonInterface(JsonSessionState session)
ssoBuildLogonInterface in interface PortalSecurityManagerpublic String ssoGetRemoteLogoutURL(JsonSessionState session, String source)
ssoGetRemoteLogoutURL in interface PortalSecurityManagerString - The SSO source to usepublic String ssoGetRemoteLogonURL(JsonSessionState session, String source)
ssoGetRemoteLogonURL in interface PortalSecurityManagerString - The SSO source to usepublic 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 failpublic boolean testTrustToken(JsonSessionState session, String token)
testTrustToken in interface PortalSecurityManagertoken - : The token to validateCopyright © 2009-2015. All Rights Reserved.