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