public interface JwtSignatureBuilder extends JwtSignature
JwtSignatureBuilder implementations must set the 'alg' (algorithm) header to 'RS256' and 'typ' (token type) header to 'JWT' unless they have already been set.
Note that JwtSignatureBuilder implementations are not expected to be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
JwtSignatureBuilder |
algorithm(SignatureAlgorithm algorithm)
Set a signature algorithm.
|
JwtSignatureBuilder |
header(String name,
Object value)
Custom JWT signature header.
|
JwtSignatureBuilder |
keyId(String keyId)
Set a 'kid' signature key id.
|
default JwtSignatureBuilder |
signatureAlgorithm(SignatureAlgorithm algorithm)
Deprecated.
|
default JwtSignatureBuilder |
signatureKeyId(String keyId)
Deprecated.
|
JwtSignatureBuilder |
thumbprint(X509Certificate cert)
Set X.509 Certificate SHA-1 'x5t' thumbprint.
|
JwtSignatureBuilder |
thumbprintS256(X509Certificate cert)
Set X.509 Certificate SHA-256 'x5t#S256' thumbprint.
|
innerSign, innerSign, innerSign, innerSign, innerSignWithSecret, sign, sign, sign, sign, signWithSecretJwtSignatureBuilder algorithm(SignatureAlgorithm algorithm)
algorithm - the signature algorithm@Deprecated default JwtSignatureBuilder signatureAlgorithm(SignatureAlgorithm algorithm)
algorithm(io.smallrye.jwt.algorithm.SignatureAlgorithm)algorithm - the signature algorithmJwtSignatureBuilder keyId(String keyId)
keyId - the key id@Deprecated default JwtSignatureBuilder signatureKeyId(String keyId)
keyId(java.lang.String)keyId - the key idJwtSignatureBuilder thumbprint(X509Certificate cert)
cert - the certificateJwtSignatureBuilder thumbprintS256(X509Certificate cert)
cert - the certificateJwtSignatureBuilder header(String name, Object value)
SignatureAlgorithm values.name - the header namevalue - the header valueCopyright © 2018–2022. All rights reserved.