AuthenticationProvider, OutboundSecurityProvider, SecurityProviderpublic class HttpBasicAuthProvider extends SynchronousProvider implements AuthenticationProvider, OutboundSecurityProvider
| Modifier and Type | Class | Description |
|---|---|---|
static class |
HttpBasicAuthProvider.Builder |
HttpBasicAuthProvider fluent API builder. |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
EP_PROPERTY_OUTBOUND_PASSWORD |
Configure this for outbound requests to override password to use.
|
static java.lang.String |
EP_PROPERTY_OUTBOUND_USER |
Configure this for outbound requests to override user to use.
|
| Modifier and Type | Method | Description |
|---|---|---|
static HttpBasicAuthProvider.Builder |
builder() |
Get a builder instance to construct a new security provider.
|
static HttpBasicAuthProvider |
fromConfig(Config config) |
Load this provider from configuration.
|
boolean |
isOutboundSupported(ProviderRequest providerRequest,
SecurityEnvironment outbondEnv,
EndpointConfig outboundEp) |
Check if the path to be executed is supported by this security provider.
|
protected AuthenticationResponse |
syncAuthenticate(ProviderRequest providerRequest) |
Synchronous authentication.
|
protected OutboundSecurityResponse |
syncOutbound(ProviderRequest providerRequest,
SecurityEnvironment outboundEnv,
EndpointConfig outboundEp) |
Synchronous outbound security.
|
authenticateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoutboundSecuritysupportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjectsauthenticate, authorize, outboundSecurity, syncAuthorizepublic static final java.lang.String EP_PROPERTY_OUTBOUND_USER
public static final java.lang.String EP_PROPERTY_OUTBOUND_PASSWORD
public static HttpBasicAuthProvider.Builder builder()
fromConfig(Config) (or fromConfig(Config)).public static HttpBasicAuthProvider fromConfig(Config config)
config - Configuration located at this provider's configuration (e.g. child is either http-basic-auth or
http-digest-auth)public boolean isOutboundSupported(ProviderRequest providerRequest, SecurityEnvironment outbondEnv, EndpointConfig outboundEp)
OutboundSecurityProviderisOutboundSupported in interface OutboundSecurityProviderproviderRequest - context with environment, subject(s) etc. that was receivedoutbondEnv - environment for outbound calloutboundEp - outbound endpoint configurationprotected OutboundSecurityResponse syncOutbound(ProviderRequest providerRequest, SecurityEnvironment outboundEnv, EndpointConfig outboundEp)
SynchronousProvidersyncOutbound in class SynchronousProviderproviderRequest - context with environment, subject(s) etc.outboundEnv - environment of this outbound calloutboundEp - endpoint config for outbound callOutboundSecurityProvider.outboundSecurity(ProviderRequest, SecurityEnvironment, EndpointConfig),
OutboundSecurityProvider.isOutboundSupported(ProviderRequest, SecurityEnvironment, EndpointConfig)protected AuthenticationResponse syncAuthenticate(ProviderRequest providerRequest)
SynchronousProvidersyncAuthenticate in class SynchronousProviderproviderRequest - context with environment, subject(s) etc.AuthenticationProvider.authenticate(ProviderRequest)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.