Class ClientAssertionSigningKey.Builder
java.lang.Object
com.revetsec.oauth.ClientAssertionSigningKey.Builder
- Enclosing class:
ClientAssertionSigningKey
@NotThreadSafe
@CheckReturnValue
public static final class ClientAssertionSigningKey.Builder
extends Object
Configures one immutable signing snapshot without provider or signing calls.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutable snapshot without signing or I/O.certificateSha256Thumbprint(byte @Nullable [] value) Replaces the optional SHA-256 certificate digest with a defensive copy.Replaces the optional key identifier.toString()Redacts configured keys and identifiers.
-
Method Details
-
keyId
Replaces the optional key identifier. Text must contain 1–256 UTF-16 code units and valid Unicode.- Parameters:
value- identifier, or null to clear- Returns:
- this builder
- Since:
- 1.0.0
-
certificateSha256Thumbprint
public @NonNull ClientAssertionSigningKey.Builder certificateSha256Thumbprint(byte @Nullable [] value) Replaces the optional SHA-256 certificate digest with a defensive copy.- Parameters:
value- exactly 32 bytes, or null to clear- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds an immutable snapshot without signing or I/O.- Returns:
- the snapshot
- Since:
- 1.0.0
-
toString
-