Interface JWSSigner

    • Method Detail

      • sign

        Base64URL sign​(JWSHeader header,
                       byte[] signingInput)
                throws JOSEException
        Signs the specified input of a JWS object.
        Parameters:
        header - The JSON Web Signature (JWS) header. Must specify a supported JWS algorithm and must not be null.
        signingInput - The input to sign. Must not be null.
        Returns:
        The resulting signature part (third part) of the JWS object.
        Throws:
        JOSEException - If the JWS algorithm is not supported, if a critical header parameter is not supported or marked for deferral to the application, or if signing failed for some other internal reason.