Identifies a method that must be run with a new
SecurityIdentity that is valid only
for the duration of this method's execution.-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionConfiguresPrincipal.getName()as retrieved by the new identity methodSecurityIdentity.getPrincipal(). -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]ConfiguresSecurityIdentity.getRoles()on the newSecurityIdentity.
-
Element Details
-
user
String userConfiguresPrincipal.getName()as retrieved by the new identity methodSecurityIdentity.getPrincipal().- Returns:
- The username used as the new identity principal name.
-
-
-
roles
String[] rolesConfiguresSecurityIdentity.getRoles()on the newSecurityIdentity.- Returns:
- The new identity roles.
- Default:
- {}
-