Package com.authlete.sd
Class SDPresentation
- java.lang.Object
-
- com.authlete.sd.SDCombinedFormat
-
- com.authlete.sd.SDPresentation
-
public class SDPresentation extends SDCombinedFormat
A class that represents the "Combined Format for Presentation" defined in the SD-JWT specification.Instances of this class are immutable.
- Since:
- 1.0
- See Also:
- Selective Disclosure for JWTs (SD-JWT)
-
-
Constructor Summary
Constructors Constructor Description SDPresentation(String sdJwt, Collection<Disclosure> disclosures)Constructor with an SD-JWT and disclosures.SDPresentation(String sdJwt, Collection<Disclosure> disclosures, String bindingJwt)Constructor with an SD-JWT, disclosures and a binding JWT.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBindingJwt()Get the binding JWT.-
Methods inherited from class com.authlete.sd.SDCombinedFormat
getDisclosures, getSDJwt, isIssuance, isPresentation, parse, toString
-
-
-
-
Constructor Detail
-
SDPresentation
public SDPresentation(String sdJwt, Collection<Disclosure> disclosures)
Constructor with an SD-JWT and disclosures.This constructor is an alias of
SDPresentation(sdJwt, disclosures, null).- Parameters:
sdJwt- An SD-JWT. Must not be null.disclosures- Disclosures. May be null.- Throws:
IllegalArgumentException- The given SD-JWT is null.
-
SDPresentation
public SDPresentation(String sdJwt, Collection<Disclosure> disclosures, String bindingJwt)
Constructor with an SD-JWT, disclosures and a binding JWT.The references to
Disclosureinstances in the given disclosure collection are internally copied and theSDCombinedFormat.getDisclosures()method returns the copied list as an unmodifiable list. On copy, null elements in the given collection are filtered out.- Parameters:
sdJwt- An SD-JWT. Must not be null.disclosures- Disclosures. May be null.bindingJwt- A binding JWT. May be null.- Throws:
IllegalArgumentException- The given SD-JWT is null.
-
-
Method Detail
-
getBindingJwt
public String getBindingJwt()
Get the binding JWT.- Returns:
- The binding JWT.
-
-