Class SignatureSpi

    • Method Detail

      • engineInitVerify

        protected void engineInitVerify​(PublicKey publicKey)
                                 throws InvalidKeyException
        Description copied from class: SignatureSpi
        Initializes this SignatureSpi instance for signature verification, using the public key of the identity whose signature is going to be verified.
        Specified by:
        engineInitVerify in class SignatureSpi
        Parameters:
        publicKey - the public key.
        Throws:
        InvalidKeyException - if publicKey is not valid.
      • engineInitSign

        protected void engineInitSign​(PrivateKey privateKey)
                               throws InvalidKeyException
        Description copied from class: SignatureSpi
        Initializes this SignatureSpi instance for signing, using the private key of the identity whose signature is going to be generated.
        Specified by:
        engineInitSign in class SignatureSpi
        Parameters:
        privateKey - the private key.
        Throws:
        InvalidKeyException - if privateKey is not valid.