public interface RoleMapping
| Modifier and Type | Method and Description |
|---|---|
Collection<Role> |
resolveRoles(Set<String> realmData,
Collection<PrincipalProvider<?>> principalProviders)
Resolve the
Roles from the given data. |
Collection<Role> resolveRoles(Set<String> realmData, Collection<PrincipalProvider<?>> principalProviders)
Roles from the given data.
The RoleMapping can have its own rules whether or not to give a
Role. These rules can be based on the given
PrincipalProviders.
The principalProviders collection is not null but the principal you may look for might not be present.
realmData - the authorization data coming from the realm as a set of
String. Not null.principalProviders - the principalProviders coming from the Realm of this.
Not nullRoles resolved from the data. Not
null.for utility methods to extract principalProviders
from a collection.Copyright © 2013-2018–2019 SeedStack. All rights reserved.