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"
or "smallrye.jwt.sign.key-location" properties 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"
or "smallrye.jwt.sign.key-location" properties which can point to PEM, JWK or JWK set keys.
|
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. |
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.
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.signingKey - the signing keyJwtSignatureException - the exception if the signing operation has failedString sign(String keyLocation) throws JwtSignatureException
JwtSignatureBuilder.
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.
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.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.
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.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.
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.
Note: "smallrye.jwt.sign.key-location" property is deprecated and will be removed in the next major release.
If no "smallrye.jwt.sign.key.location" or "smallrye.jwt.sign.key-location" properties and 'alg' algorithm header
have been set then an insecure inner JWT with a "none" algorithm has to be created before being encrypted.
Note: support for the "none" algorithm has been deprecated and will be removed in the next major release.
A key of size 2048 bits or larger MUST be used with the 'RS256' algorithm.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.secret - the secretJwtSignatureException - the exception if the signing operation has failedCopyright © 2018–2021. All rights reserved.