CompositeProviderSelectionPolicypublic interface ProviderSelectionPolicy
ProviderSelectionPolicy.Providers as a single parameter, or a public constructor that
accepts ProviderSelectionPolicy.Providers and Config if you want your instance to be configurable.
To support configuring through a builder pattern, you must provide to security
builder a function that accepts ProviderSelectionPolicy.Providers and returns an instance of this interface,
which could be the constructor itself.| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
ProviderSelectionPolicy.Providers |
Interface that is passed to a constructor of a
ProviderSelectionPolicy implementation to supply all configured
providers from security. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<OutboundSecurityProvider> |
selectOutboundProviders() |
Specific method for outbound providers, as we have an option to choose the first outbound provider that matches
the current request.
|
<T extends SecurityProvider> |
selectProvider(java.lang.Class<T> providerType) |
Select a provider instance of the type defined that this policy has configured as the default.
|
<T extends SecurityProvider> |
selectProvider(java.lang.Class<T> providerType,
java.lang.String requestedName) |
Select a provider instance of the type defined that this policy finds for the requested name.
|
<T extends SecurityProvider> java.util.Optional<T> selectProvider(java.lang.Class<T> providerType)
T - type of providerproviderType - type of provider (one of AuthenticationProvider, AuthorizationProvider)java.util.List<OutboundSecurityProvider> selectOutboundProviders()
<T extends SecurityProvider> java.util.Optional<T> selectProvider(java.lang.Class<T> providerType, java.lang.String requestedName)
T - type of providerproviderType - type of provider (one of AuthenticationProvider, AuthorizationProvider or OutboundSecurityProvider)requestedName - explicit provider name to findCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.