All Implemented Interfaces:
PKCSObjectIdentifiers, X509ObjectIdentifiers
Direct Known Subclasses:
SignatureSpi.ecDSA, SignatureSpi.ecDSA256, SignatureSpi.ecDSA384, SignatureSpi.ecDSA512, SignatureSpi.ecDSAnone

public class SignatureSpi
extends DSABase
  • Method Details

    • 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.