Package de.adorsys.sdjwt.vp
Class SdJwtVP
- java.lang.Object
-
- de.adorsys.sdjwt.vp.SdJwtVP
-
public class SdJwtVP extends Object
- Author:
- Francis Pouatcha
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,com.fasterxml.jackson.databind.node.ArrayNode>getClaims()com.fasterxml.jackson.databind.JsonNodegetCnfClaim()Map<String,String>getDisclosures()Collection<String>getDisclosuresString()Collection<String>getGhostDigests()StringgetHashAlgorithm()IssuerSignedJWTgetIssuerSignedJWT()Optional<KeyBindingJWT>getKeyBindingJWT()Map<String,String>getRecursiveDigests()static SdJwtVPof(String sdJwtString)Stringpresent(List<String> disclosureDigests, com.fasterxml.jackson.databind.JsonNode keyBindingClaims, com.nimbusds.jose.JWSSigner holdSignatureSignerContext, String keyId, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, String jwsType)StringtoString()Stringverbose()voidverify(IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, KeyBindingJwtVerificationOpts keyBindingJwtVerificationOpts)Verifies SD-JWT presentation.
-
-
-
Method Detail
-
getIssuerSignedJWT
public IssuerSignedJWT getIssuerSignedJWT()
-
getDisclosuresString
public Collection<String> getDisclosuresString()
-
getGhostDigests
public Collection<String> getGhostDigests()
-
getHashAlgorithm
public String getHashAlgorithm()
-
getKeyBindingJWT
public Optional<KeyBindingJWT> getKeyBindingJWT()
-
getCnfClaim
public com.fasterxml.jackson.databind.JsonNode getCnfClaim()
-
present
public String present(List<String> disclosureDigests, com.fasterxml.jackson.databind.JsonNode keyBindingClaims, com.nimbusds.jose.JWSSigner holdSignatureSignerContext, String keyId, com.nimbusds.jose.JWSAlgorithm jwsAlgorithm, String jwsType)
-
verify
public void verify(IssuerSignedJwtVerificationOpts issuerSignedJwtVerificationOpts, KeyBindingJwtVerificationOpts keyBindingJwtVerificationOpts) throws SdJwtVerificationException
Verifies SD-JWT presentation.- Parameters:
issuerSignedJwtVerificationOpts- Options to parametize the verification. A verifier must be specified for validating the Issuer-signed JWT. The caller is responsible for establishing trust in that associated public keys belong to the intended issuer.keyBindingJwtVerificationOpts- Options to parametize the Key Binding JWT verification. Must, among others, specify the Verify's policy whether to check Key Binding.- Throws:
SdJwtVerificationException- if verification failed
-
verbose
public String verbose()
-
-