Interface AuthProvider
- All Known Implementing Classes:
ExternalAuthProvider
public interface AuthProvider
Provider for reading roles and permissions.
-
Method Summary
Modifier and TypeMethodDescriptionreadExternalRolesForUser
(String userId) Get the ids of User's roles that were assigned by a third party authorization provider.readPermissionsByIds
(Set<String> ids) Read set of permissions by the supplied idsreadRolesByIds
(Set<String> ids) Read a set of roles by the supplied ids
-
Method Details
-
readRolesByIds
Read a set of roles by the supplied ids- Parameters:
ids
- The ids of the roles to read- Returns:
- A set of roles
-
readPermissionsByIds
Read set of permissions by the supplied ids- Parameters:
ids
- The ids of the permissions to read- Returns:
- A set of permissions
-
readExternalRolesForUser
Get the ids of User's roles that were assigned by a third party authorization provider.- Parameters:
userId
- The id of the User whose roles should be checked.- Returns:
- A set of role ids of the roles that have been assigned by a third party authorization provider.
-