Package org.wildfly.security.auth.realm
Class JaasSecurityRealm.JaasAuthorizationIdentity
- java.lang.Object
-
- org.wildfly.security.auth.realm.JaasSecurityRealm.JaasAuthorizationIdentity
-
- All Implemented Interfaces:
AuthorizationIdentity
- Enclosing class:
- JaasSecurityRealm
private static class JaasSecurityRealm.JaasAuthorizationIdentity extends Object implements AuthorizationIdentity
A JAAS realm's authorization identity. Roles are mapped from all Subject's principals with the following rule: key of the attribute is principal's simple classname and the value is principal's name
-
-
Field Summary
Fields Modifier and Type Field Description private MapAttributes
attributes
-
Fields inherited from interface org.wildfly.security.authz.AuthorizationIdentity
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
JaasAuthorizationIdentity(MapAttributes attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static JaasSecurityRealm.JaasAuthorizationIdentity
fromSubject(Subject subject)
Attributes
getAttributes()
Get the attributes which pertain to this identity.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.authz.AuthorizationIdentity
getRuntimeAttributes
-
-
-
-
Field Detail
-
attributes
private MapAttributes attributes
-
-
Constructor Detail
-
JaasAuthorizationIdentity
private JaasAuthorizationIdentity(MapAttributes attributes)
-
-
Method Detail
-
fromSubject
private static JaasSecurityRealm.JaasAuthorizationIdentity fromSubject(Subject subject)
-
getAttributes
public Attributes getAttributes()
Description copied from interface:AuthorizationIdentity
Get the attributes which pertain to this identity. By default, an empty attribute collection is returned.- Specified by:
getAttributes
in interfaceAuthorizationIdentity
- Returns:
- the attributes (must not be
null
)
-
-