public class SecurityInterceptor extends Object
SecurityManager, handing of authentication tokens to authenticated users, and intercepting any
 access to resources.| Constructor and Description | 
|---|
| SecurityInterceptor(String component) | 
| SecurityInterceptor(String component,
                   Properties props,
                   boolean useMinusDLast)Construct an interceptor for this component, applying any additional properties provided. | 
| Modifier and Type | Method and Description | 
|---|---|
| SecurityContext | authenticate(SecurityContext securityContext)Authenticates the users' details (username and password) specified as part of the
 security-context against the underlying  SecurityManager. | 
| UserDetails | getUserDetails(AuthenticationToken authenticationToken)Retrieve user details by the authentication token to allow login into first-time cluster
 member proxies. | 
| void | intercept(SecurityContext securityContext,
         Privilege privilege,
         String className)Intercepts any requests against the provided authentication token and the privilege needed to
 access the resource. | 
| boolean | isTrusted(UserDetails userDetails) | 
| boolean | shouldBypassFilter(SecurityContext securityContext)If security context should not be passed to the filter or audit. | 
| SpaceContext | trustContext(SpaceContext spaceContext)Extract the original security context and create a trusted security context wrapper. | 
| void | trustProxy(IJSpace proxy)Internal (VM) trust mechanism; acquires a trusted token and sets the internal proxy. | 
public SecurityInterceptor(String component)
public SecurityInterceptor(String component, Properties props, boolean useMinusDLast)
SecurityManager can be injected through this properties object.component - component name (can be null)props - custom properties provided.useMinusDLast - true if should first find security properties file matching
                      the component name, and if not found, resolve by matching the sys-prop
                      provided name. Usually when running inside a container.
                      false if should first resolve by matching the sys-prop
                      provided name.public SecurityContext authenticate(SecurityContext securityContext)
SecurityManager. An authenticated user is
 given a token for subsequent usage. Audit successful/failed authentication requests.securityContext - The security context holding the user details.public boolean isTrusted(UserDetails userDetails)
public void trustProxy(IJSpace proxy) throws RemoteException
RemoteExceptionpublic void intercept(SecurityContext securityContext, Privilege privilege, String className)
privilege - The privilege required to access the resource.className - The class name to intercept if an operation filter was provided.AuthenticationException - if the authentication token provided is invalid.AccessDeniedException - if the authenticated user lacks privileges required by the
                                 accessed resource.public UserDetails getUserDetails(AuthenticationToken authenticationToken)
authenticationToken - a tokenAuthenticationException - if the authentication token is invalid.public SpaceContext trustContext(SpaceContext spaceContext)
spaceContext - The space contextpublic boolean shouldBypassFilter(SecurityContext securityContext)
Copyright © GigaSpaces.