Package org.keycloak.sdjwt
Class SdJws
java.lang.Object
org.keycloak.sdjwt.SdJws
- Direct Known Subclasses:
IssuerSignedJWT
,KeyBindingJWT
Handle jws, either the issuer jwt or the holder key binding jwt.
- Author:
- Francis Pouatcha
-
Constructor Summary
ModifierConstructorDescriptionprotected
SdJws
(com.fasterxml.jackson.databind.JsonNode payload) protected
SdJws
(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType) protected
protected
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
protected static JWSInput
sign
(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType) toJws()
void
verifySignature
(SignatureVerifierContext verifier)
-
Constructor Details
-
SdJws
protected SdJws(com.fasterxml.jackson.databind.JsonNode payload) -
SdJws
-
SdJws
-
SdJws
protected SdJws(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType)
-
-
Method Details
-
toJws
-
getPayload
public com.fasterxml.jackson.databind.JsonNode getPayload() -
getJwsString
-
sign
protected static JWSInput sign(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType) -
verifySignature
- Throws:
VerificationException
-