]
David Lloyd resolved ELY-288.
-----------------------------
Fix Version/s: 1.1.0.Alpha1
Resolution: Done
Add authorize() or "changeIdentity()" method to
SecurityIdentity
----------------------------------------------------------------
Key: ELY-288
URL:
https://issues.jboss.org/browse/ELY-288
Project: WildFly Elytron
Issue Type: Enhancement
Components: API / SPI
Reporter: David Lloyd
Assignee: David Lloyd
Fix For: 1.1.0.Alpha1
Add a method to SecurityIdentity which accepts a name and uses it to attempt to authorize
a run-as-principal operation. Unlike
org.wildfly.security.auth.server.ServerAuthenticationContext#authorize(), this method
performs the authorization in the context of an existing, established SecurityIdentity
instead of creating a new one based off of an authentication.
The existing authorize() method on SAC should be refactored to reuse
SecurityIdentity's authorize function once this change is made.