org.ssonet.mechanisms.accountability
Class DSA

java.lang.Object
  |
  +--org.ssonet.mechanisms.accountability.AbstractAccountabilityMechanism
        |
        +--org.ssonet.mechanisms.accountability.DSA
All Implemented Interfaces:
IOStream, Mechanism

public class DSA
extends AbstractAccountabilityMechanism


Field Summary
(package private)  boolean debug
           
 
Fields inherited from class org.ssonet.mechanisms.accountability.AbstractAccountabilityMechanism
EOF, inBuffer, INBUFFER_SIZE, ioStream, keyLengths, mechanismName, messageBuffer, modes, negotiatedMechConf, providers, readBlockNumber, readException, readMode, rounds, securityGoal, signatureBuffer, signatureIn, signatureOut, validBytesToRead, variants, writeBlockNumber
 
Fields inherited from interface org.ssonet.net.Mechanism
KEYLENGTH, MODES, PROVIDERLIST, ROUNDS, VARIANTS
 
Constructor Summary
DSA()
           
 
Method Summary
 void init(org.ssonet.io.IOStream ioStream, int securityGoal, org.ssonet.mechanisms.MechanismConfiguration ownMechanismConfiguration)
          Initialize without key exchange
 void init(org.ssonet.io.IOStream ioStream, int securityGoal, org.ssonet.mechanisms.MechanismConfiguration ownMechanismConfiguration, org.ssonet.mechanisms.MechanismConfiguration partnerMechanismConfiguration, org.ssonet.net.KeyExchange keyExchange)
          Initialize with key exchange Must be synchronized, so that not two keypairs are created an written to the context.
protected  void initCipher(int securityGoal, java.security.PrivateKey signKey, java.security.PublicKey testKey, org.ssonet.io.IOStream ioStream)
          Initialize crypto mechanisms
 
Methods inherited from class org.ssonet.mechanisms.accountability.AbstractAccountabilityMechanism
available, closeIn, closeOut, getConfiguration, getDefaultConfiguration, getKeyLengths, getModes, getName, getProviders, getRounds, getVariants, initIOStream, read, testDecrypt, testEncrypt, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

boolean debug
Constructor Detail

DSA

public DSA()
Method Detail

init

public void init(org.ssonet.io.IOStream ioStream,
                 int securityGoal,
                 org.ssonet.mechanisms.MechanismConfiguration ownMechanismConfiguration)
Initialize without key exchange

Specified by:
init in interface Mechanism
Overrides:
init in class AbstractAccountabilityMechanism
Parameters:
ioStream - mechanism IOStream
ownMechanismConfiguration - own mechanism configuration, for this method the mechanism configuration must also enclose the respective key (private or public) for the intended operation (sign or test)
securityGoal - the security goal, for which the algorithm is used

init

public void init(org.ssonet.io.IOStream ioStream,
                 int securityGoal,
                 org.ssonet.mechanisms.MechanismConfiguration ownMechanismConfiguration,
                 org.ssonet.mechanisms.MechanismConfiguration partnerMechanismConfiguration,
                 org.ssonet.net.KeyExchange keyExchange)
          throws ParameterNotCompatibleException
Initialize with key exchange Must be synchronized, so that not two keypairs are created an written to the context. with synchronization, the first call creates the keypair, and the second call finds the allready created keys.

Specified by:
init in interface Mechanism
Overrides:
init in class AbstractAccountabilityMechanism
Parameters:
ioStream - mechanism IOStream
ownMechanismConfiguration - own mechanism configuration
partnerMechanismConfiguration - partner mechanism configuration
keyExchange - prepared key exchange protocol
securityGoal - the security goal, for which the algorithm is used
Throws:
ParameterNotCompatibleException - if negotiation of parameters fails

initCipher

protected void initCipher(int securityGoal,
                          java.security.PrivateKey signKey,
                          java.security.PublicKey testKey,
                          org.ssonet.io.IOStream ioStream)
Initialize crypto mechanisms

Parameters:
testKey - test key
signKey - sign key


Copyright © 2003 DRIM Team. All Rights Reserved.