io.helidon.common.Builder<InboundClientDefinition>public static class InboundClientDefinition.Builder extends java.lang.Object implements io.helidon.common.Builder<InboundClientDefinition>
InboundClientDefinition.
Use build() to create the instance.| Modifier and Type | Method | Description |
|---|---|---|
InboundClientDefinition.Builder |
algorithm(java.lang.String algorithm) |
Algorithm of signature used by this client.
|
InboundClientDefinition |
build() |
|
InboundClientDefinition.Builder |
fromConfig(io.helidon.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(java.lang.String secret) |
Helper method to configure a password-like secret (instead of byte based
hmacSecret(byte[]). |
InboundClientDefinition.Builder |
keyId(java.lang.String keyId) |
The key id of this client to map to this signature validation configuration.
|
InboundClientDefinition.Builder |
principalName(java.lang.String name) |
The principal name of the client, defaults to keyId if not configured.
|
InboundClientDefinition.Builder |
publicKeyConfig(io.helidon.common.pki.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(io.helidon.security.SubjectType type) |
The type of principal we have authenticated (either user or service, defaults to service).
|
public InboundClientDefinition.Builder principalName(java.lang.String name)
name - name of security principalpublic InboundClientDefinition.Builder keyId(java.lang.String keyId)
keyId - key id as provided in inbound signaturepublic InboundClientDefinition.Builder subjectType(io.helidon.security.SubjectType type)
type - principal typepublic InboundClientDefinition.Builder algorithm(java.lang.String algorithm)
algorithm - algorithm usedpublic InboundClientDefinition.Builder publicKeyConfig(io.helidon.common.pki.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(java.lang.String secret)
hmacSecret(byte[]).
The password is transformed to bytes with StandardCharsets.UTF_8 charset.secret - shared secret to validate signaturepublic InboundClientDefinition build()
build in interface io.helidon.common.Builder<InboundClientDefinition>public InboundClientDefinition.Builder fromConfig(io.helidon.config.Config config)
config - config instanceCopyright © 2018 Oracle Corporation. All rights reserved.