Class ClientAssertionSigningKey
java.lang.Object
com.revetsec.oauth.ClientAssertionSigningKey
Immutable signer and protected-header identifiers selected together for one assertion. At least one identifier
is required. The private key and identifiers never appear in string rendering; arrays are defensively copied.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfigures one immutable signing snapshot without provider or signing calls. -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of the optional SHA-256 certificate digest.getKeyId()Returns the optional key identifier.toString()Redacts the key and identifiers.withSigner(@NonNull JwsSigner signer) Starts a snapshot builder.
-
Method Details
-
withSigner
@CheckReturnValue public static @NonNull ClientAssertionSigningKey.Builder withSigner(@NonNull JwsSigner signer) Starts a snapshot builder. A key ID or certificate digest must also be supplied.- Parameters:
signer- the required signer- Returns:
- the builder
- Since:
- 1.0.0
-
getKeyId
-
getCertificateSha256Thumbprint
Returns a copy of the optional SHA-256 certificate digest.- Returns:
- digest when configured
- Since:
- 1.0.0
-
toString
-