be.SIRAPRISE.client
Class ProcessScript

java.lang.Object
  extended by be.SIRAPRISE.client.ProcessScript
All Implemented Interfaces:
Signer, java.lang.Runnable

public class ProcessScript
extends java.lang.Object
implements java.lang.Runnable, Signer

Author:
Erwin Smout

Field Summary
static java.lang.String CLIENTID
           
static java.lang.String FILE
          The name of the property used to indicate the name of the script file to be processed
static java.lang.String OUTFILE
          The property name for specifying the output file.
static java.lang.String SCRIPTSDIRECTORY
          The property name for specifying the directory containing the SIRA_PRISE script to be run
static java.lang.String SPS
          The suffix by which script files can be recognized
 
Method Summary
static void main(java.lang.String[] args)
          Runs a series of commands through the server
 void run()
           
 byte[] sign(java.security.Signature signature, byte[] signMessage)
          Computes the signature for the given byte string and the given Signature.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENTID

public static final java.lang.String CLIENTID
See Also:
Constant Field Values

FILE

public static final java.lang.String FILE
The name of the property used to indicate the name of the script file to be processed

See Also:
Constant Field Values

OUTFILE

public static final java.lang.String OUTFILE
The property name for specifying the output file.

See Also:
Constant Field Values

SCRIPTSDIRECTORY

public static final java.lang.String SCRIPTSDIRECTORY
The property name for specifying the directory containing the SIRA_PRISE script to be run

See Also:
Constant Field Values

SPS

public static final java.lang.String SPS
The suffix by which script files can be recognized

See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Runs a series of commands through the server

Parameters:
args - No arguments are used
Throws:
java.io.IOException

run

public void run()
Specified by:
run in interface java.lang.Runnable

sign

public byte[] sign(java.security.Signature signature,
                   byte[] signMessage)
            throws java.security.InvalidKeyException,
                   java.security.SignatureException,
                   NotFoundException
Description copied from interface: Signer
Computes the signature for the given byte string and the given Signature. Normally, this involves three method invocations on the given Signature object :

Specified by:
sign in interface Signer
Parameters:
signature - The Signature object to be used for computing the signature.
signMessage - The message to be signed.
Returns:
the computed signature
Throws:
java.security.InvalidKeyException - If the private key found for signing with this Signature, turns out to be invalid
java.security.SignatureException - If any problem occurred during computation of the signature
NotFoundException - If no private key could be found for signing with this Signature