Class IdcsRoleMapperRxProvider

    • Method Detail

      • builder

        public static IdcsRoleMapperRxProvider.Builder<?> builder()
        Creates a new builder to build instances of this class.
        Returns:
        a new fluent API builder.
      • create

        public static SecurityProvider create​(Config config)
        Creates an instance from configuration.

        Expects:

        • oidc-config to load an instance of OidcConfig
        • cache-config (optional) to load an instance of EvictableCache for role caching
        Parameters:
        config - configuration of this provider
        Returns:
        a new instance configured from config
      • addAdditionalGrants

        protected Single<List<? extends Grant>> addAdditionalGrants​(Subject subject,
                                                                    List<Grant> idcsGrants)
        Extension point to add additional grants that are not retrieved from IDCS.
        Parameters:
        subject - subject to enhance
        idcsGrants - grants obtained from IDCS
        Returns:
        grants to add to the subject
      • getGrantsFromServer

        protected Single<List<? extends Grant>> getGrantsFromServer​(Subject subject)
        Retrieves grants from IDCS server.
        Parameters:
        subject - to get grants for
        Returns:
        optional list of grants to be added