Class DefaultDataRolesFetcher

java.lang.Object
io.micronaut.security.ojdbc.extensions.DefaultDataRolesFetcher
All Implemented Interfaces:
DataRolesFetcher

@Internal public class DefaultDataRolesFetcher extends Object implements DataRolesFetcher
Default DataRolesFetcher implementation.
Since:
5.1.0
  • Method Details

    • fetchDataRoles

      public @Nullable Collection<String> fetchDataRoles(@NonNull Map<oracle.jdbc.spi.OracleResourceProvider.Parameter, CharSequence> parameters, @NonNull Authentication authentication)
      Description copied from interface: DataRolesFetcher
      Resolves the Oracle Database data roles to apply to the end user security context.
      Specified by:
      fetchDataRoles in interface DataRolesFetcher
      Parameters:
      parameters - parameters supplied to the OJDBC resource provider
      authentication - the current Micronaut Security authentication
      Returns:
      the data roles to apply, or null when no data roles should be applied
    • mergeDataRoles

      @SafeVarargs public static @Nullable Set<String> mergeDataRoles(Set<String>... dataRoleSets)
      Merges data role sets into a single set.
      Parameters:
      dataRoleSets - data role sets to merge
      Returns:
      merged data roles, or null when every set is empty or null
      Since:
      5.1.0