com.componio.jlicensure.shared
Interface SignedCommand

All Superinterfaces:
Command, java.io.Serializable

public interface SignedCommand
extends Command

A signed command.


Method Summary
 Command getCommand()
          Retrieves the encapsulated object.
 boolean verify(java.security.PublicKey verificationKey, java.security.Signature verificationEngine)
          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.
 

Method Detail

getCommand

Command getCommand()
                   throws java.io.IOException
Retrieves the encapsulated object. The encapsulated object is de-serialized before it is returned.

Throws:
java.io.IOException

verify

boolean verify(java.security.PublicKey verificationKey,
               java.security.Signature verificationEngine)
               throws java.security.InvalidKeyException,
                      java.security.SignatureException,
                      java.io.IOException
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.

Throws:
java.security.InvalidKeyException
java.security.SignatureException
java.io.IOException