public class InboundClientDefinition
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
InboundClientDefinition.Builder |
Fluent API builder to create a new instance of
InboundClientDefinition. |
| Modifier and Type | Method | Description |
|---|---|---|
static InboundClientDefinition.Builder |
builder(Config config) |
Create a new builder from configuration.
|
static InboundClientDefinition.Builder |
builder(java.lang.String keyId) |
Create a new builder for the keyId.
|
static InboundClientDefinition |
fromConfig(Config config) |
Create a new instance from configuration.
|
java.lang.String |
getAlgorithm() |
Algorithm of signature used by this client.
|
java.util.Optional<byte[]> |
getHmacSharedSecret() |
For hmac-sha256 algorithm, this provides access to a secret shared with the client.
|
java.util.Optional<KeyConfig> |
getKeyConfig() |
For rsa-sha256 algorithm, this provides access to the public key of the client.
|
java.lang.String |
getKeyId() |
The key id of this client.
|
java.lang.String |
getPrincipalName() |
The principal name of the client.
|
SubjectType |
getSubjectType() |
The type of principal we have authenticated (either user or service, defaults to service).
|
public static InboundClientDefinition.Builder builder(java.lang.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 fromConfig(Config config)
config - configuration instance located at a single client definition (expect key-id as a child)public java.lang.String getKeyId()
public java.lang.String getPrincipalName()
public SubjectType getSubjectType()
public java.lang.String getAlgorithm()
public java.util.Optional<KeyConfig> getKeyConfig()
public java.util.Optional<byte[]> getHmacSharedSecret()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.