Module io.inverno.mod.security
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.
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 TypeMethodDescriptionReturns trusted credentials for the specified identifier.
-
Method Details
-
resolveCredentials
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
-