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
ConstructorsModifierConstructorDescriptionprotectedSdJws(com.fasterxml.jackson.databind.JsonNode payload) protectedSdJws(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType) protectedprotected -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeprotected static JWSInputsign(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType) toJws()voidverifySignature(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
-