public final class OutboundTargetDefinition extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OutboundTargetDefinition.Builder
Fluent API builder to build
OutboundTargetDefinition instances. |
| Modifier and Type | Method and Description |
|---|---|
String |
algorithm()
Algorithm used by this signature.
|
static OutboundTargetDefinition.Builder |
builder(Config config)
Create a builder from configuration.
|
static OutboundTargetDefinition.Builder |
builder(String keyId)
Get a new builder .
|
static OutboundTargetDefinition |
create(Config config)
Create an instance from configuration.
|
HttpSignHeader |
header()
Header to store signature in.
|
Optional<byte[]> |
hmacSharedSecret()
Shared secret for HMAC based algorithms.
|
Optional<KeyConfig> |
keyConfig()
Private key configuration for RSA based algorithms.
|
String |
keyId()
Key id of this service (will be mapped by target service to validate signature).
|
SignedHeadersConfig |
signedHeadersConfig()
Configuration of method to headers to define headers to be signed.
|
public static OutboundTargetDefinition.Builder builder(String keyId)
keyId - keyId to send with signaturepublic static OutboundTargetDefinition.Builder builder(Config config)
config - configuration located at this target, expects "key-id" to be a childpublic static OutboundTargetDefinition create(Config config)
config - configuration located at this outbound key, expects "key-id" to be a childpublic String keyId()
public String algorithm()
public Optional<KeyConfig> keyConfig()
public Optional<byte[]> hmacSharedSecret()
public HttpSignHeader header()
public SignedHeadersConfig signedHeadersConfig()
The following headers have special handling:
header() returns HttpSignHeader.AUTHORIZATION it is ignoredCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.