Interface CredentialsResolver<A extends Credentials>

Type Parameters:
A - The type of credentials
All Known Subinterfaces:
All Known Implementing Classes:
InMemoryLoginCredentialsResolver, InMemoryUserRepository, RedisUserRepository
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CredentialsResolver<A extends Credentials>

A credentials resolver is used to resolve credentials identified by a unique identifier from a trusted source.

An Authenticator implementation can rely on a credentials resolver to resolve trusted credentials and compare them to the credentials provided by an entity using a CredentialsMatcher during the authentication process. As a result, resolved credentials must come from trusted secured sources.

Jeremy Kuhn
See Also:
  • Method Summary

    Modifier and Type
    Returns trusted credentials for the specified identifier.
  • Method Details

    • resolveCredentials

      Mono<A> resolveCredentials(String id) throws SecurityException

      Returns trusted credentials for the specified identifier.

      id - the identifier of the credentials to resolve
      a mono emitting the credentials or an empty mono if no credentials exist with the specified identifier
      SecurityException - if there was an error during the resolution of credentials