Class Signature.Builder

    • Method Detail

      • provider

        public Signature.Builder provider​(String provider)
        Set provider of the algorithm.
        Parameters:
        provider - provider to be used
        Returns:
        updated builder instance
      • privateKey

        public Signature.Builder privateKey​(PrivateKey privateKey)
        Set private key which should be used for signature creation.
        Parameters:
        privateKey - private key
        Returns:
        updated builder instance
      • publicKey

        public Signature.Builder publicKey​(PublicKey publicKey)
        Set public key which should be used for signature verification.
        Parameters:
        publicKey - private key
        Returns:
        updated builder instance
      • build

        public Signature build()
        Description copied from interface: Builder
        Build the instance from this builder.
        Specified by:
        build in interface Builder<Signature>
        Returns:
        instance of the built type