issrg.acm
Class SigningUtility

java.lang.Object
  extended by issrg.acm.SigningUtility
All Implemented Interfaces:
Utility, Signer
Direct Known Subclasses:
DefaultSigningUtility, SimpleSigningUtility

public abstract class SigningUtility
extends java.lang.Object
implements Utility, Signer

This is a base class for signing things.

The state diagram for the caller could be displayed in the following way:

 

.---------------[logout]--------------.
| |
v |
.-------. .-----------------.--'
| start |--[login]-->| constant signer |----------------.
`-------' .--------->`-----------------' |
| |
`--[getSigningAlgorithmID, sign, isLoggedIn]--'

Note that in ``constant signer`` state the Manager must ensure the signer does not change after logging in.

In ISSRG implementation of the Manager the Issuer DN and Issuer BCID input fields are disabled for editing and are present only for observation of the current value; however, before signing the Manager puts there the actual values obtained from the PKC.

The ISSRG implementation logs the user out after each signing to ensure better security of the signing process.

Version:
1.0
Author:
A.Otenko

Constructor Summary
SigningUtility()
           
 
Method Summary
abstract  void login(java.awt.Frame f, java.util.Map m)
           
abstract  void logout(java.awt.Frame f, java.util.Map m)
           
 void registerMe(Registry where)
          You do not need to override this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface issrg.security.Signer
getSigningAlgorithmID, getVerificationCertificate, sign
 

Constructor Detail

SigningUtility

public SigningUtility()
Method Detail

registerMe

public final void registerMe(Registry where)
You do not need to override this method.

Specified by:
registerMe in interface Utility

login

public abstract void login(java.awt.Frame f,
                           java.util.Map m)
                    throws SecurityException
Throws:
SecurityException

logout

public abstract void logout(java.awt.Frame f,
                            java.util.Map m)
                     throws SecurityException
Throws:
SecurityException