Interface CredentialsResolver<A extends Credentials>

Type Parameters:
A - The type of credentials
All Known Subinterfaces:
UserRepository<A,B>
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.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Method Summary

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

    • resolveCredentials

      Mono<A> resolveCredentials(String id) throws SecurityException

      Returns trusted credentials for the specified identifier.

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