public final class HttpSignProvider extends Object implements AuthenticationProvider, OutboundSecurityProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpSignProvider.Builder
Fluent API builder for this provider.
|
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<AuthenticationResponse> |
authenticate(ProviderRequest providerRequest)
Authenticate a request.
|
static HttpSignProvider.Builder |
builder()
Create a builder to build this provider.
|
static HttpSignProvider |
create(Config config)
Create a new instance of this provider from configuration.
|
boolean |
isOutboundSupported(ProviderRequest providerRequest,
SecurityEnvironment outboundEnv,
EndpointConfig outboundConfig)
Check if the path to be executed is supported by this security provider.
|
CompletionStage<OutboundSecurityResponse> |
outboundSecurity(ProviderRequest providerRequest,
SecurityEnvironment outboundEnv,
EndpointConfig outboundConfig)
Creates necessary updates to headers and entity needed for outbound
security (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjectspublic static HttpSignProvider create(Config config)
config - config located at this provider, expects "http-signature" to be a childpublic static HttpSignProvider.Builder builder()
public CompletionStage<AuthenticationResponse> authenticate(ProviderRequest providerRequest)
AuthenticationProvider
This method must provide either a Principal or a whole
Subject either for a user or for service (or both).
authenticate in interface AuthenticationProviderproviderRequest - context of this security enforcement/validationAuthenticationResponse.success(Subject)public boolean isOutboundSupported(ProviderRequest providerRequest, SecurityEnvironment outboundEnv, EndpointConfig outboundConfig)
OutboundSecurityProviderisOutboundSupported in interface OutboundSecurityProviderproviderRequest - context with environment, subject(s) etc. that was receivedoutboundEnv - environment for outbound calloutboundConfig - outbound endpoint configurationpublic CompletionStage<OutboundSecurityResponse> outboundSecurity(ProviderRequest providerRequest, SecurityEnvironment outboundEnv, EndpointConfig outboundConfig)
OutboundSecurityProvideroutboundSecurity in interface OutboundSecurityProviderproviderRequest - context with environment, subject(s) etc. that was receivedoutboundEnv - environment for outbound calloutboundConfig - outbound endpoint configurationOutboundSecurityResponse.builder()Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.