@Component(value="portalSecurityManager") public class PortalSecurityManagerImpl extends java.lang.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
|
java.lang.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,
java.lang.String username,
java.lang.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.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.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.
|
java.lang.String |
ssoGetRemoteLogonURL(JsonSessionState session,
java.lang.String source)
Retrieve the login URL for redirection against a given provider.
|
java.lang.String |
ssoGetRemoteLogoutURL(JsonSessionState session,
java.lang.String source)
Retrieve the login URL for redirection against a given provider.
|
java.lang.String |
ssoInit(JsonSessionState session)
Initialize the SSO Service, prepare a login if required
|
boolean |
testForSso(JsonSessionState session,
java.lang.String resource,
java.lang.String uri)
Given the provided resource, test whether SSO should be 'aware' of this
resource.
|
boolean |
testTrustToken(JsonSessionState session,
java.lang.String token)
Validate the provided trust token.
|
public PortalSecurityManagerImpl()
throws java.io.IOException
java.io.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 java.lang.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, java.lang.String username, java.lang.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 java.lang.String ssoInit(JsonSessionState session) throws java.lang.Exception
ssoInit in interface PortalSecurityManagersession - The server session datajava.lang.Exception - if any errors occurpublic boolean ssoCheckUserDetails(JsonSessionState session)
ssoCheckUserDetails in interface PortalSecurityManagerpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> ssoBuildLogonInterface(JsonSessionState session)
ssoBuildLogonInterface in interface PortalSecurityManagerpublic java.lang.String ssoGetRemoteLogoutURL(JsonSessionState session, java.lang.String source)
ssoGetRemoteLogoutURL in interface PortalSecurityManagerString - The SSO source to usepublic java.lang.String ssoGetRemoteLogonURL(JsonSessionState session, java.lang.String source)
ssoGetRemoteLogonURL in interface PortalSecurityManagerString - The SSO source to usepublic boolean testForSso(JsonSessionState session, java.lang.String resource, java.lang.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, java.lang.String token)
testTrustToken in interface PortalSecurityManagertoken - : The token to validateCopyright © 2009-2019. All Rights Reserved.