public class OpenIdSecurityManager extends Object implements SecurityManager
| Modifier and Type | Field and Description |
|---|---|
static String |
SPRING_SECURITY_CONFIG_LOCATION |
static String |
XAP_SECURITY_ACTIVE_CONFIG |
static String |
XAP_SECURITY_ROLES |
SECURITY_MANAGER_CLASS_PROPERTY_KEY| Constructor and Description |
|---|
OpenIdSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(UserDetails userDetails)
Attempts to authenticate the passed user represented by
UserDetails, returning a
fully populated UserDetails object (including granted authorities) if
successful. |
void |
close()
Closes the Spring application context using
ConfigurableApplicationContext.close(). |
protected org.springframework.security.core.Authentication |
createAuthenticationRequest(UserDetails userDetails)
Creates an
Authentication request object to be
passed to the AuthenticationManager.authenticate(org.springframework.security.core.Authentication)
method on each call to authenticate(UserDetails). |
DirectoryManager |
createDirectoryManager(UserDetails userDetails)
Throws a
DirectoryAccessDeniedException on any attempt to manage the users/roles
using this API. |
void |
init(Properties properties)
Initialize the security manager using the spring security configuration.
|
public static final String SPRING_SECURITY_CONFIG_LOCATION
public static final String XAP_SECURITY_ACTIVE_CONFIG
public static final String XAP_SECURITY_ROLES
public void init(Properties properties) throws SecurityException
init in interface SecurityManagerproperties - properties to use configure this instance.SecurityExceptionpublic Authentication authenticate(UserDetails userDetails) throws AuthenticationException
SecurityManagerUserDetails, returning a
fully populated UserDetails object (including granted authorities) if
successful.authenticate in interface SecurityManageruserDetails - the user request objectAuthenticationException - if authentication failsprotected org.springframework.security.core.Authentication createAuthenticationRequest(UserDetails userDetails)
Authentication request object to be
passed to the AuthenticationManager.authenticate(org.springframework.security.core.Authentication)
method on each call to authenticate(UserDetails). This method can be overridden
by subclasses which require authentication request other than the default UsernamePasswordAuthenticationToken.
userDetails - The GigaSpaces user details request objectpublic void close()
ConfigurableApplicationContext.close().close in interface SecurityManagerpublic DirectoryManager createDirectoryManager(UserDetails userDetails) throws AuthenticationException, AccessDeniedException
DirectoryAccessDeniedException on any attempt to manage the users/roles
using this API.createDirectoryManager in interface SecurityManageruserDetails - the user request objectAuthenticationException - if authentication fails for the specified userAccessDeniedException - if not granted sufficient access required to manage
role detailsDirectoryAccessDeniedException - if the directory should not be managed by API.Copyright © GigaSpaces.