Cumulus4j API
(1.1.0)

org.cumulus4j.crypto.internal.asymmetric.keypairgenerator
Class AbstractAsymmetricCipherKeyPairGeneratorFactory

java.lang.Object
  extended by org.cumulus4j.crypto.internal.asymmetric.keypairgenerator.AbstractAsymmetricCipherKeyPairGeneratorFactory
All Implemented Interfaces:
AsymmetricCipherKeyPairGeneratorFactory
Direct Known Subclasses:
DHBasicKeyPairGeneratorFactory, DSAKeyPairGeneratorFactory, ElGamalKeyPairGeneratorFactory, GOST3410KeyPairGeneratorFactory, NaccacheSternKeyPairGeneratorFactory, RSAKeyPairGeneratorFactory

public abstract class AbstractAsymmetricCipherKeyPairGeneratorFactory
extends Object
implements AsymmetricCipherKeyPairGeneratorFactory

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Constructor Summary
AbstractAsymmetricCipherKeyPairGeneratorFactory()
           
 
Method Summary
 String getAlgorithmName()
          Get the name of the encryption algorithm for which keys should be generated.
 void setAlgorithmName(String algorithmName)
          Set the name of the encryption algorithm for which keys are to be generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cumulus4j.crypto.AsymmetricCipherKeyPairGeneratorFactory
createAsymmetricCipherKeyPairGenerator
 

Constructor Detail

AbstractAsymmetricCipherKeyPairGeneratorFactory

public AbstractAsymmetricCipherKeyPairGeneratorFactory()
Method Detail

getAlgorithmName

public String getAlgorithmName()
Description copied from interface: AsymmetricCipherKeyPairGeneratorFactory
Get the name of the encryption algorithm for which keys should be generated. For example "RSA". See Supported algorithms for a list of supported algorithms.

Specified by:
getAlgorithmName in interface AsymmetricCipherKeyPairGeneratorFactory
Returns:
the name of the encryption algorithm for which keys are to be generated.

setAlgorithmName

public void setAlgorithmName(String algorithmName)
Description copied from interface: AsymmetricCipherKeyPairGeneratorFactory
Set the name of the encryption algorithm for which keys are to be generated. This method should never be called by API consumers! It should throw an IllegalStateException, if it is called again, after an algorithm name was already set before.

Specified by:
setAlgorithmName in interface AsymmetricCipherKeyPairGeneratorFactory
Parameters:
algorithmName - the name of the encryption algorithm; never null.
See Also:
AsymmetricCipherKeyPairGeneratorFactory.getAlgorithmName()

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.