|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PortalSecurityManager
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.
| 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 |
ssoGetRemoteLogoutURL(JsonSessionState session,
String source)
|
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. |
| Method Detail |
|---|
AccessControlManager getAccessControlManager()
AuthManager getAuthManager()
RolesManager getRoleManager()
String[] getRolesList(JsonSessionState session,
User user)
user - The user object of the current user
User getUser(JsonSessionState session,
String username,
String source)
throws AuthenticationException
username - The username of a user to retrievesource - The authentication source if known
AuthenticationException - if any errors occur
void logout(JsonSessionState session,
User user)
throws AuthenticationException
AuthenticationException
boolean runSsoIntegration(JsonSessionState session,
FormData formData)
session - : The session of the current requestformData - : FormData object for the current request
String ssoInit(JsonSessionState session)
throws Exception
session - The server session data
Exception - if any errors occur
String ssoGetRemoteLogonURL(JsonSessionState session,
String source)
String - The SSO source to use
String ssoGetRemoteLogoutURL(JsonSessionState session,
String source)
boolean ssoCheckUserDetails(JsonSessionState session)
Map<String,Map<String,String>> ssoBuildLogonInterface(JsonSessionState session)
boolean testForSso(JsonSessionState session,
String resource,
String uri)
session - : The session for this requestresource - : The name of the resource being accesseduri - : The full URI of the resource if simple matches fail
boolean testTrustToken(JsonSessionState session,
String token)
token - : The token to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||