Module java.base
Package java.security

# Class Signature

=
public abstract class Signature
extends java.security.SignatureSpi

## Fields

- =
  protected static final int SIGN = 2
- =
  protected static final int UNINITIALIZED = 0
- =
  protected static final int VERIFY = 3
- =
  protected int state

## Constructors

- =
  protected Signature(java.lang.String arg0)

## Methods

- =
  public java.lang.Object clone() throws java.lang.CloneNotSupportedException
- =
  public final java.lang.String getAlgorithm()
- =
  public static java.security.Signature getInstance(java.lang.String arg0) throws java.security.NoSuchAlgorithmException
- =
  public static java.security.Signature getInstance(java.lang.String arg0, java.lang.String arg1) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
- =
  public static java.security.Signature getInstance(java.lang.String arg0, java.security.Provider arg1) throws java.security.NoSuchAlgorithmException
- =
  @Deprecated
  public final java.lang.Object getParameter(java.lang.String arg0) throws java.security.InvalidParameterException
- =
  public final java.security.AlgorithmParameters getParameters()
- =
  public final java.security.Provider getProvider()
- =
  public final void initSign(java.security.PrivateKey arg0) throws java.security.InvalidKeyException
- =
  public final void initSign(java.security.PrivateKey arg0, java.security.SecureRandom arg1) throws java.security.InvalidKeyException
- =
  public final void initVerify(java.security.PublicKey arg0) throws java.security.InvalidKeyException
- =
  public final void initVerify(java.security.cert.Certificate arg0) throws java.security.InvalidKeyException
- =
  @Deprecated
  public final void setParameter(java.lang.String arg0, java.lang.Object arg1) throws java.security.InvalidParameterException
- =
  public final void setParameter(java.security.spec.AlgorithmParameterSpec arg0) throws java.security.InvalidAlgorithmParameterException
- =
  public final byte[] sign() throws java.security.SignatureException
- =
  public final int sign(byte[] arg0, int arg1, int arg2) throws java.security.SignatureException
- =
  public java.lang.String toString()
- =
  public final void update(byte arg0) throws java.security.SignatureException
- =
  public final void update(byte[] arg0) throws java.security.SignatureException
- =
  public final void update(byte[] arg0, int arg1, int arg2) throws java.security.SignatureException
- =
  public final void update(java.nio.ByteBuffer arg0) throws java.security.SignatureException
- =
  public final boolean verify(byte[] arg0) throws java.security.SignatureException
- =
  public final boolean verify(byte[] arg0, int arg1, int arg2) throws java.security.SignatureException

## Summary

No differences.