Class DefaultDataRolesFetcher
java.lang.Object
io.micronaut.security.ojdbc.extensions.DefaultDataRolesFetcher
- All Implemented Interfaces:
DataRolesFetcher
Default
DataRolesFetcher implementation.- Since:
- 5.1.0
-
Method Summary
Modifier and TypeMethodDescription@Nullable Collection<String> fetchDataRoles(@NonNull Map<oracle.jdbc.spi.OracleResourceProvider.Parameter, CharSequence> parameters, @NonNull Authentication authentication) Resolves the Oracle Database data roles to apply to the end user security context.mergeDataRoles(Set<String>... dataRoleSets) Merges data role sets into a single set.
-
Method Details
-
fetchDataRoles
public @Nullable Collection<String> fetchDataRoles(@NonNull Map<oracle.jdbc.spi.OracleResourceProvider.Parameter, CharSequence> parameters, @NonNull Authentication authentication) Description copied from interface:DataRolesFetcherResolves the Oracle Database data roles to apply to the end user security context.- Specified by:
fetchDataRolesin interfaceDataRolesFetcher- Parameters:
parameters- parameters supplied to the OJDBC resource providerauthentication- the current Micronaut Security authentication- Returns:
- the data roles to apply, or
nullwhen no data roles should be applied
-
mergeDataRoles
Merges data role sets into a single set.- Parameters:
dataRoleSets- data role sets to merge- Returns:
- merged data roles, or
nullwhen every set is empty ornull - Since:
- 5.1.0
-