org.ssonet.mechanisms.accountability
Class RSA

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

public class RSA
extends AbstractAccountabilityMechanism

RSA-Mechanism


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
RSA()
           
 
Method Summary
 org.ssonet.mechanisms.MechanismConfiguration getDefaultConfiguration()
           
 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.
 
Methods inherited from class org.ssonet.mechanisms.accountability.AbstractAccountabilityMechanism
available, closeIn, closeOut, getConfiguration, 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

RSA

public RSA()
Method Detail

getDefaultConfiguration

public org.ssonet.mechanisms.MechanismConfiguration getDefaultConfiguration()
Specified by:
getDefaultConfiguration in interface Mechanism
Overrides:
getDefaultConfiguration in class AbstractAccountabilityMechanism
Returns:
default configuration of RSA

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


Copyright © 2003 DRIM Team. All Rights Reserved.