keyGenerator
Class KeyGen

java.lang.Object
  extended by keyGenerator.KeyGen

final class KeyGen
extends java.lang.Object

Generates cryptographic keys.

Author:
Karl-Peter Fuchs

Field Summary
private static InternalInformationPortController internalInformationPort
          Reference on component InternalInformationPort.
private static java.util.logging.Logger LOGGER
          Logger used to log and display information.
 
Constructor Summary
private KeyGen()
          Empty, private constructor.
 
Method Summary
protected static javax.crypto.spec.IvParameterSpec generateInterMixIV()
          Generates and returns an initialization vector (IvParameterSpec).
protected static javax.crypto.SecretKey generateInterMixKey()
          Generates and returns a SecretKey.
protected static java.security.KeyPair generateKeyPair()
          Generates and returns a KeyPair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internalInformationPort

private static InternalInformationPortController internalInformationPort
Reference on component InternalInformationPort. Used to display and/or log data and read general settings.


LOGGER

private static final java.util.logging.Logger LOGGER
Logger used to log and display information.

Constructor Detail

KeyGen

private KeyGen()
Empty, private constructor. Never used, since all methods are static.

Method Detail

generateKeyPair

protected static java.security.KeyPair generateKeyPair()
Generates and returns a KeyPair.

Returns:
The generated KeyPair.

generateInterMixKey

protected static javax.crypto.SecretKey generateInterMixKey()
Generates and returns a SecretKey.

Returns:
The generated SecretKey.

generateInterMixIV

protected static javax.crypto.spec.IvParameterSpec generateInterMixIV()
Generates and returns an initialization vector (IvParameterSpec).

Returns:
The generated initialization vector.