public interface JwtSignature
| Modifier and Type | Method and Description |
|---|---|
JwtEncryptionBuilder |
innerSign()
Sign the claims with a key loaded from the location set with the "smallrye.jwt.sign.key.location"
property or the key content set with the "smallrye.jwt.sign.key" property and encrypt the inner JWT
by moving to
JwtEncryptionBuilder. |
JwtEncryptionBuilder |
innerSign(PrivateKey signingKey)
Sign the claims with
PrivateKey and encrypt the inner JWT by moving to JwtEncryptionBuilder. |
JwtEncryptionBuilder |
innerSign(SecretKey signingKey)
Sign the claims with
SecretKey and encrypt the inner JWT by moving to JwtEncryptionBuilder. |
JwtEncryptionBuilder |
innerSign(String keyLocation)
Sign the claims with a private or secret key loaded from the custom location
which can point to a PEM, JWK or JWK set keys and encrypt the inner JWT by moving to
JwtEncryptionBuilder. |
JwtEncryptionBuilder |
innerSignWithSecret(String secret)
Sign the claims with a secret key string and encrypt the inner JWT by moving to
JwtEncryptionBuilder. |
String |
sign()
Sign the claims with a key loaded from the location set with the "smallrye.jwt.sign.key.location" property
or the key content set with the "smallrye.jwt.sign.key" property.
|
String |
sign(PrivateKey signingKey)
Sign the claims with
PrivateKey. |
String |
sign(SecretKey signingKey)
Sign the claims with
SecretKey
'HS256' algorithm will be used unless a different algorithm has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property. |
String |
sign(String keyLocation)
Sign the claims with a private or secret key loaded from the custom location
which can point to a PEM, JWK or JWK set keys.
|
String |
signWithSecret(String secret)
Sign the claims with a secret key string.
|
String sign(PrivateKey signingKey) throws JwtSignatureException
PrivateKey.
'RS256' algorithm will be used unless a different algorithm has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm.signingKey - the signing keyJwtSignatureException - the exception if the signing operation has failedString sign(SecretKey signingKey) throws JwtSignatureException
SecretKey
'HS256' algorithm will be used unless a different algorithm has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.signingKey - the signing keyJwtSignatureException - the exception if the signing operation has failedString sign(String keyLocation) throws JwtSignatureException
JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm.keyLocation - the signing key locationJwtSignatureException - the exception if the signing operation has failedString sign() throws JwtSignatureException
JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm.JwtSignatureException - the exception if the signing operation has failedString signWithSecret(String secret) throws JwtSignatureException
JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.secret - the secretJwtSignatureException - the exception if the signing operation has failedJwtEncryptionBuilder innerSign(PrivateKey signingKey) throws JwtSignatureException
PrivateKey and encrypt the inner JWT by moving to JwtEncryptionBuilder.
'RS256' algorithm will be used unless a different algorithm has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm.signingKey - the signing keyJwtSignatureException - the exception if the inner JWT signing operation has failedJwtEncryptionBuilder innerSign(SecretKey signingKey) throws JwtSignatureException
SecretKey and encrypt the inner JWT by moving to JwtEncryptionBuilder.
'HS256' algorithm will be used unless a different algorithm has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.signingKey - the signing keyJwtSignatureException - the exception if the inner JWT signing operation has failedJwtEncryptionBuilder innerSign(String keyLocation) throws JwtSignatureException
JwtEncryptionBuilder.
'RS256' algorithm will be used unless a different one has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm.keyLocation - the signing key locationJwtSignatureException - the exception if the inner JWT signing operation has failedJwtEncryptionBuilder innerSign() throws JwtSignatureException
JwtEncryptionBuilder. Signing keys in PEM, JWK and JWK formats are supported.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm or 'smallrye.jwt.new-token.signature-algorithm'
property.JwtSignatureException - the exception if the inner JWT signing operation has failedJwtEncryptionBuilder innerSignWithSecret(String secret) throws JwtSignatureException
JwtEncryptionBuilder.
'HS256' algorithm will be used unless a different one has been set with JwtSignatureBuilder or
'smallrye.jwt.new-token.signature-algorithm' property.secret - the secretJwtSignatureException - the exception if the signing operation has failedCopyright © 2018–2022. All rights reserved.