Class IssuerSignedJWT

java.lang.Object
org.keycloak.sdjwt.SdJws
org.keycloak.sdjwt.IssuerSignedJWT

public class IssuerSignedJWT extends SdJws
Handle verifiable credentials (SD-JWT VC), enabling the parsing of existing VCs as well as the creation and signing of new ones. It integrates with Keycloak's SignatureSignerContext to facilitate the generation of issuer signature.
Author:
Francis Pouatcha
  • Field Details

  • Constructor Details

    • IssuerSignedJWT

      public IssuerSignedJWT(com.fasterxml.jackson.databind.JsonNode payload, SignatureSignerContext signer, String jwsType)
  • Method Details

    • fromJws

      public static IssuerSignedJWT fromJws(String jwsString)
    • getCnfClaim

      public Optional<com.fasterxml.jackson.databind.JsonNode> getCnfClaim()
      Returns `cnf` claim (establishing key binding)
    • getSdHashAlg

      public String getSdHashAlg()
      Returns declared hash algorithm from SD hash claim.
    • verifySdHashAlgorithm

      public void verifySdHashAlgorithm() throws VerificationException
      Verifies that the SD hash algorithm is understood and deemed secure.
      Throws:
      VerificationException - if not
    • builder

      public static IssuerSignedJWT.Builder builder()