public class InboundClientDefinition extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InboundClientDefinition.Builder
Fluent API builder to create a new instance of
InboundClientDefinition. |
| Modifier and Type | Method and Description |
|---|---|
String |
algorithm()
Algorithm of signature used by this client.
|
static InboundClientDefinition.Builder |
builder(Config config)
Create a new builder from configuration.
|
static InboundClientDefinition.Builder |
builder(String keyId)
Create a new builder for the keyId.
|
static InboundClientDefinition |
create(Config config)
Create a new instance from configuration.
|
Optional<byte[]> |
hmacSharedSecret()
For hmac-sha256 algorithm, this provides access to a secret shared with the client.
|
Optional<KeyConfig> |
keyConfig()
For rsa-sha256 algorithm, this provides access to the public key of the client.
|
String |
keyId()
The key id of this client.
|
String |
principalName()
The principal name of the client.
|
SubjectType |
subjectType()
The type of principal we have authenticated (either user or service, defaults to service).
|
public static InboundClientDefinition.Builder builder(String keyId)
keyId - Key id as is received in inbound signature (mandatory part of the signature header) to
map to configured RSA or HMAC key.public static InboundClientDefinition.Builder builder(Config config)
config - configuration instance located at a single client definition (expect key-id as a child)public static InboundClientDefinition create(Config config)
config - configuration instance located at a single client definition (expect key-id as a child)public String keyId()
public String principalName()
public SubjectType subjectType()
public String algorithm()
public Optional<KeyConfig> keyConfig()
public Optional<byte[]> hmacSharedSecret()
Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.