Package de.adorsys.sdjwt
Class IssuerSignedJWT
- java.lang.Object
-
- de.adorsys.sdjwt.SdJws
-
- de.adorsys.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 JOSE's JWSSigner to facilitate the generation of issuer signature.- Author:
- Francis Pouatcha
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIssuerSignedJWT.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringCLAIM_NAME_SD_HASH_ALGORITHMstatic StringCLAIM_NAME_SELECTIVE_DISCLOSURE
-
Constructor Summary
Constructors Constructor Description IssuerSignedJWT(com.fasterxml.jackson.databind.JsonNode payload, com.nimbusds.jose.JWSSigner signer, String keyId, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, String jwsType)IssuerSignedJWT(com.nimbusds.jose.util.Base64URL payloadBase64URL, com.nimbusds.jose.JWSSigner signer, String keyId, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, String jwsType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IssuerSignedJWT.Builderbuilder()static IssuerSignedJWTfromJws(String jwsString)Optional<com.fasterxml.jackson.databind.JsonNode>getCnfClaim()Returns Cnf claim (establishing key binding)StringgetSdHashAlg()Returns declared hash algorithm from SD hash claim.voidverifySdHashAlgorithm()Verifies that the SD hash algorithm is understood and deemed secure.-
Methods inherited from class de.adorsys.sdjwt.SdJws
getHeader, getPayload, toJws, verifyExpClaim, verifyIssClaim, verifyIssuedAtClaim, verifyNotBeforeClaim, verifySignature, verifyVctClaim
-
-
-
-
Field Detail
-
CLAIM_NAME_SELECTIVE_DISCLOSURE
public static final String CLAIM_NAME_SELECTIVE_DISCLOSURE
- See Also:
- Constant Field Values
-
CLAIM_NAME_SD_HASH_ALGORITHM
public static final String CLAIM_NAME_SD_HASH_ALGORITHM
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 SdJwtVerificationExceptionVerifies that the SD hash algorithm is understood and deemed secure.- Throws:
SdJwtVerificationException- if not
-
builder
public static IssuerSignedJWT.Builder builder()
-
-