public interface RoleMapping
Modifier and Type | Method and Description |
---|---|
Collection<Role> |
resolveRoles(Set<String> realmData,
Collection<PrincipalProvider<?>> principalProviders)
Resolve the
Role s from the given data. |
Collection<Role> resolveRoles(Set<String> realmData, Collection<PrincipalProvider<?>> principalProviders)
Role
s 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
PrincipalProvider
s.
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 nullRole
s resolved from the data. Not
null.for utility methods to extract principalProviders
from a collection.
Copyright © 2013-2018–2019 SeedStack. All rights reserved.