Interface JwsBuilderFactory


public interface JwsBuilderFactory
Create an instance of a JwsBuilder
See Also:
  • Method Details

    • getInstance

      JwsBuilder getInstance(String algorithm, 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(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:
      UnsupportedOperationException - if it doesn't exist a system key for the given algorithm