API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. SignedObject View Source
Author(s)
Li Gong
Since
Version
1.44, 11/17/05
Serial
Hierarchy
 Object
      SignedObject
Implements
 Serializable
Subclasses
Description
publicfinal class SignedObject
  SignedObject is a class for the purpose of creating authentic runtime objects whose integrity cannot be compromised without being detected.
See also:    Signature
Constructors
public SignedObject (Serializable object, PrivateKey signingKey, Signature signingEngine) throws IOException InvalidKeyException SignatureException
  Constructs a SignedObject from any Serializable object.
Methods
Hide/Show inherited methods
public String getAlgorithm ()
  Retrieves the name of the signature algorithm.
public Object getObject () throws IOException ClassNotFoundException
  Retrieves the encapsulated object.
public byte getSignature ()
  Retrieves the signature on the signed object, in the form of a byte array.
public boolean verify (PublicKey verificationKey, Signature verificationEngine) throws InvalidKeyException SignatureException
  Verifies that the signature in this SignedObject is the valid signature for the object stored inside, with the given verification key, using the designated verification engine.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar