Class UserAuthenticationProvidersConfig

java.lang.Object
com.polarion.platform.spi.security.UserAuthenticationProvidersConfig

public class UserAuthenticationProvidersConfig extends Object
Configuration to store user to authentication provider relations
Since:
3.21.1
  • Field Details

  • Constructor Details

    • UserAuthenticationProvidersConfig

      public UserAuthenticationProvidersConfig()
    • UserAuthenticationProvidersConfig

      public UserAuthenticationProvidersConfig(@NotNull Document config, @Nullable ILocation loc)
    • UserAuthenticationProvidersConfig

      public UserAuthenticationProvidersConfig(@NotNull InputStream in, @Nullable ILocation loc)
    • UserAuthenticationProvidersConfig

      public UserAuthenticationProvidersConfig(@NotNull InputStream in)
  • Method Details

    • serialize

      @NotNull public Document serialize()
    • getProviders

      @NotNull public Set<String> getProviders()
    • getUsers

      @NotNull public Set<String> getUsers(@NotNull String providerId)
    • getUsersForDefault

      @NotNull public Set<String> getUsersForDefault()
    • addUser

      public boolean addUser(@NotNull String userId, @NotNull String providerId)
    • addUserForDefault

      public boolean addUserForDefault(@NotNull String userId)
    • removeUser

      public boolean removeUser(@NotNull String userId, @NotNull String providerId)
    • removeUserForDefault

      public boolean removeUserForDefault(@NotNull String userId)
    • includeUserOnlyInRequestedProviders

      public boolean includeUserOnlyInRequestedProviders(@NotNull String userId, @NotNull Set<String> providerIds)