@Singleton public class DefaultProviderResolver extends java.lang.Object implements ProviderResolver
ProviderResolver
.Constructor and Description |
---|
DefaultProviderResolver(java.util.List<OpenIdClientConfiguration> openIdClientConfigurations) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Optional<java.lang.String> |
openIdClientNameWhichMatchesIssClaim(Authentication authentication) |
protected java.util.Optional<java.lang.String> |
openIdClientNameWhichMatchesIssuer(java.lang.String issuer) |
java.util.Optional<java.lang.String> |
resolveProvider(Authentication authentication)
Resolves the provider.
|
public DefaultProviderResolver(java.util.List<OpenIdClientConfiguration> openIdClientConfigurations)
public java.util.Optional<java.lang.String> resolveProvider(Authentication authentication)
ProviderResolver
resolveProvider
in interface ProviderResolver
authentication
- The authenticationprotected java.util.Optional<java.lang.String> openIdClientNameWhichMatchesIssClaim(Authentication authentication)
authentication
- State of authentication@NonNull protected java.util.Optional<java.lang.String> openIdClientNameWhichMatchesIssuer(@NonNull java.lang.String issuer)
issuer
- Token Issuer