Skip to Content
Java Security
book

Java Security

by Scott Oaks
May 1998
Intermediate to advanced
469 pages
14h 57m
English
O'Reilly Media, Inc.
Content preview from Java Security

Name

Class java.security.Signature

Synopsis

This engine class provides the ability to create or verify digital signatures by employing different algorithms that have been registered with the Security class. As with all engine classes, instances of this class are obtained via the getInstance() method. The signature object must be initialized with the appropriate private key (to sign) or public key (to verify), then data must be fed to the object via the update() methods, and then the signature can be obtained (via the sign() method) or verified (via the verify() method). Signature objects may support algorithm-specific parameters, though this is not a common implementation.

Class Definition

public abstract class java.security.Signature extends java.security.SignatureSpi { // Constants protected static final int SIGN; protected static final int UNINITIALIZED; protected static final int VERIFY; // Variables protected int state; // Constructors protected Signature(String); // Class Methods public static Signature getInstance(String); public static Signature getInstance(String, String); // Instance Methods public Object clone(); public final String getAlgorithm(); public final Object getParameter(String); public final Provider getProvider(); public final void initSign(PrivateKey); public final void initSign(PrivateKey, SecureRandom); public final void initVerify(PublicKey); public final void setParameter(String, Object); public final void setParameter(AlgorithmParameterSpec); public final ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Security Handbook

Java Security Handbook

Jamie Jaworski, Paul J. Perrone, Venkata S.R. Krishna Chaganti

Publisher Resources

ISBN: 1565924037Supplemental ContentCatalog PageErrata