Interface JwsBuilderFactory

    • Method Detail

      • getInstance

        JwsBuilder getInstance​(java.lang.String algorithm,
                               java.security.Key signingKey)
        Get an instance of a JwsBuilder
        Parameters:
        algorithm - The algorithm used to sign the JWS
        key - The key used to sign the JWS. This must be @link javax.crypto.spec.SecretKeySpec in case of symmetric algorithm and
      • getInstance

        JwsBuilder getInstance​(java.lang.String algorithm)
        Get an instance of a JwsBuilder. The JWS will be signed using a system key compatible with the given algorithm (if available)
        Parameters:
        algorithm - the algorithm used to sign the JWS
        Returns:
        JwsBuilder
        Throws:
        java.lang.UnsupportedOperationException - if it doesn't exist a system key for the given algorithm