Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public interface SecurityContext
Known subtypesSecurityContextImpl
What the security layer knows about the thread’s current request: who it is
from. Held by
SecurityContextHolder.Methods
public abstract Authentication getAuthentication() | The authenticated principal, an anonymous token, or null when no chain has looked at the request. |
public abstract void setAuthentication(Authentication authentication) | Changes who the request is from. |
Method details
getAuthentication
public abstract Authentication getAuthentication()The authenticated principal, an anonymous token, or null when no chain
has looked at the request.
setAuthentication
public abstract void setAuthentication(Authentication authentication)Changes who the request is from. Signing a user in by hand also needs the
chain’s
SecurityContextRepository to save it, or the next request starts
anonymous again.