public static final class InboundClientDefinition.Builder extends Object implements Builder<InboundClientDefinition>
InboundClientDefinition.
Use build() to create the instance.| Modifier and Type | Method and Description |
|---|---|
InboundClientDefinition.Builder |
algorithm(String algorithm)
Algorithm of signature used by this client.
|
InboundClientDefinition |
build()
Build the instance from this builder.
|
InboundClientDefinition.Builder |
config(Config config)
Create a builder instance from configuration.
|
InboundClientDefinition.Builder |
hmacSecret(byte[] secret)
For hmac-sha256 algorithm, this provides access to a secret shared with the client.
|
InboundClientDefinition.Builder |
hmacSecret(String secret)
Helper method to configure a password-like secret (instead of byte based
hmacSecret(byte[]). |
InboundClientDefinition.Builder |
keyId(String keyId)
The key id of this client to map to this signature validation configuration.
|
InboundClientDefinition.Builder |
principalName(String name)
The principal name of the client, defaults to keyId if not configured.
|
InboundClientDefinition.Builder |
publicKeyConfig(KeyConfig keyConfig)
For algorithms based on public/private key (such as rsa-sha256), this provides access to the public key of the client.
|
InboundClientDefinition.Builder |
subjectType(SubjectType type)
The type of principal we have authenticated (either user or service, defaults to service).
|
public InboundClientDefinition.Builder principalName(String name)
name - name of security principalpublic InboundClientDefinition.Builder keyId(String keyId)
keyId - key id as provided in inbound signaturepublic InboundClientDefinition.Builder subjectType(SubjectType type)
type - principal typepublic InboundClientDefinition.Builder algorithm(String algorithm)
algorithm - algorithm usedpublic InboundClientDefinition.Builder publicKeyConfig(KeyConfig keyConfig)
keyConfig - keys configured to access a public key to validate signaturepublic InboundClientDefinition.Builder hmacSecret(byte[] secret)
secret - shared secret to validate signaturepublic InboundClientDefinition.Builder hmacSecret(String secret)
hmacSecret(byte[]).
The password is transformed to bytes with StandardCharsets.UTF_8 charset.secret - shared secret to validate signaturepublic InboundClientDefinition build()
Builderbuild in interface Builder<InboundClientDefinition>public InboundClientDefinition.Builder config(Config config)
config - config instanceCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.