Class SDPresentation

    • 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 Disclosure instances in the given disclosure collection are internally copied and the SDCombinedFormat.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.