public interface SecurityServices extends Service
Required in a Java EE environment. SecurityServices is a per-deployment service.
An integrator should either implement getSecurityContext() or getSecurityContextAssociator(). By default, the
getSecurityContextAssociator() method delegates to getSecurityContext(). The container always calls the
getSecurityContextAssociator() method.
| Modifier and Type | Method and Description |
|---|---|
Principal |
getPrincipal()
Obtain the Principal representing the current caller identity
|
default SecurityContext |
getSecurityContext()
Obtain the security context associated with the current thread.
|
default Consumer<Runnable> |
getSecurityContextAssociator()
Obtain the security context associated with the current thread and associate this context when an action is performed.
|
Principal getPrincipal()
default SecurityContext getSecurityContext()
By default, a noop fallback implementation is returned.
default Consumer<Runnable> getSecurityContextAssociator()
By default, the consumer is using getSecurityContext() to associate the security context.
Copyright © 2008–2019. All rights reserved.