public interface CurrentIdentityAssociation
This interface should be implemented by a CDI bean that provides a means of associating the current identity with the running thread.
| Modifier and Type | Method and Description |
|---|---|
static SecurityIdentity |
current() |
SecurityIdentity |
getIdentity()
Gets the current identity.
|
SecurityIdentity |
setIdentity(SecurityIdentity identity)
Sets the current security identity for the thread, and returns the old one.
|
SecurityIdentity setIdentity(SecurityIdentity identity)
identity - The new identitySecurityIdentity getIdentity()
static SecurityIdentity current()
Copyright © 2019 JBoss by Red Hat. All rights reserved.