Interface SignatureBegin

All Known Implementing Classes:
JWS.Signature

public interface SignatureBegin
Defines the starting point for generating JSON Web Signatures.
Author:
Christof Reichardt
  • Method Details

    • webkey

      BeforeHeader webkey(JsonWebKeyPair jsonWebKeyPair)
      Notes the given JsonWebKeyPair. The private part will be used for generating the actual signature. The public part will be exposed within the JOSE header if you don't chose to explicitly hand over a JOSE header yourself within the next step.
      Parameters:
      jsonWebKeyPair - the given JsonWebKeyPair.
      Returns:
      the next stop within the workflow of the Fluent API regarding the generation of signatures.
    • webkey

      BeforeHeader webkey(JsonWebSecretKey jsonWebSecretKey)
      Notes the given JsonWebSecretKey. The wrapped secret key will be used for generating the signature.
      Parameters:
      jsonWebSecretKey - the given JsonWebSecretKey.
      Returns:
      the next stop within the workflow of the Fluent API regarding the generation of signatures.
    • key

      BeforeHeader key(KeyPair keyPair)
      The given KeyPair will be used to build a JsonWebKeyPair. The private part will be used for generating the actual signature. The public part will be exposed within the JOSE header if you don't chose to explicitly hand over a JOSE header yourself within the next step.
      Parameters:
      keyPair - the given KeyPair.
      Returns:
      the next stop within the workflow of the Fluent API regarding the generation of signatures.
    • key

      BeforeHeader key(SecretKey secretKey)
      The given SecretKey will be used to build a JsonWebSecretKey.
      Parameters:
      secretKey - the given SecretKey.
      Returns:
      the next stop within the workflow of the Fluent API regarding the generation of signatures.