Package com.authlete.sd
Class SDIssuance
- java.lang.Object
-
- com.authlete.sd.SDCombinedFormat
-
- com.authlete.sd.SDIssuance
-
public class SDIssuance extends SDCombinedFormat
A class that represents the "Combined Format for Issuance" 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 SDIssuance(String sdJwt, Collection<Disclosure> disclosures)Constructor with an SD-JWT and disclosures.
-
Method Summary
-
Methods inherited from class com.authlete.sd.SDCombinedFormat
getDisclosures, getSDJwt, isIssuance, isPresentation, parse, toString
-
-
-
-
Constructor Detail
-
SDIssuance
public SDIssuance(String sdJwt, Collection<Disclosure> disclosures)
Constructor with an SD-JWT and disclosures.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.- Throws:
IllegalArgumentException- The given SD-JWT is null.
-
-