Name

Class java.security.SignedObject

Description

A signed object is a container class for another (target) object; the signed object contains a serialized version of the target along with a digital signature of the data contained in the target object. You must provide a serializable object and a private key to create a signed object, after which you can remove the embedded object and verify the signature of the signed object by providing the appropriate public key.

Class Definition

public final class java.security.SignedObject
  extends java.lang.Object
  implements java.io.Serializable {

  // Constructors
  public SignedObject(Serializable, PrivateKey, Signature);

  // Instance Methods
  public String getAlgorithm();
  public Object getObject();
  public byte[] getSignature();
  public boolean verify(PublicKey, Signature);
}

See Also

Signature

Get Java Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.