| Modifier and Type | Class and Description |
|---|---|
| public static interface | IdentityService.Association
An association between an identity and the current thread that can be terminated by |
| public static interface | IdentityService.RunAsToken
An opaque token created by |
| Modifier and Type | Method and Description |
|---|---|
| public IdentityService. | Returns: ACloseable that, when closed, will disassociate the token and restore any prior associations.The UserIdentity user, IdentityService.The runAsToken to associate, obtained from runAsTokennewRunAsToken(String), or null.Associate a runas Token with the current user and thread. |
| public UserIdentity | |
| public IdentityService. | Returns: A token that can be passed toassociate(UserIdentity, RunAsToken).a role name roleName)Create a new RunAsToken from a runAsName (normally a role). |
| public UserIdentity | Returns: A new immutable UserIdententitySubject to include in UserIdentity subject, Principal Principal to include in UserIdentity. This will be returned from getUserPrincipal calls userPrincipal, String[] set of roles to include in UserIdentity. roles)Create a new UserIdentity for use with this identity service. |
| public void | onLogout(UserIdentity
The user that has logged out user)Called to notify that a user has been logged out. |
| associate | back to summary |
|---|---|
| public IdentityService. Associate a runas Token with the current user and thread.
| |
| getSystemUserIdentity | back to summary |
|---|---|
| public UserIdentity getSystemUserIdentity() | |
| newRunAsToken | back to summary |
|---|---|
| public IdentityService. Create a new RunAsToken from a runAsName (normally a role).
| |
| newUserIdentity | back to summary |
|---|---|
| public UserIdentity newUserIdentity(Subject subject, Principal userPrincipal, String[] roles) Create a new UserIdentity for use with this identity service. The UserIdentity should be immutable and able to be cached.
| |
| onLogout | back to summary |
|---|---|
| public void onLogout(UserIdentity user) Called to notify that a user has been logged out.
The service may, among other actions, close any
| |
close().
associate(UserIdentity, RunAsToken)
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
newRunAsToken(String) and used by associate(UserIdentity, RunAsToken)