|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectkeyGenerator.KeyGeneratorController
public class KeyGeneratorController
Controller class of component KeyGenerator
. Implements the
architecture interface KeyGeneratorInterface
.
Used to generate cryptographic keys. A class constant with
public
accessibility is available for each supported type of
key.
Example of usage:
KeyGeneratorController kgc = new KeyGeneratorController();
KeyPair kp = (KeyPair) kgc.generateKey(KeyGeneratorController.KEY_PAIR);
Field Summary | |
---|---|
static int |
INTER_MIX_IV
Initialization vector ( IvParameterSpec ) used to encrypt
(header) data between two mixes. |
static int |
INTER_MIX_KEY
SecretKey used to encrypt (header) data between two mixes. |
static int |
KEY_PAIR
KeyPair (public key and a private key) used for asymmetric
cryptography. |
Constructor Summary | |
---|---|
KeyGeneratorController()
Generates a new KeyGenerator component, used to generate
cryptographic keys. |
Method Summary | |
---|---|
java.lang.Object |
generateKey(int identifier)
Generates a cryptographic key according to the bypassed identifier. |
void |
initialize()
Initializes the this component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INTER_MIX_KEY
SecretKey
used to encrypt (header) data between two mixes.
Key size and type are specified in the property file.
public static final int INTER_MIX_IV
IvParameterSpec
) used to encrypt
(header) data between two mixes.
public static final int KEY_PAIR
KeyPair
(public key and a private key) used for asymmetric
cryptography. Key size and type are specified in the property file.
Constructor Detail |
---|
public KeyGeneratorController()
KeyGenerator
component, used to generate
cryptographic keys. A class constant with public
accessibility is available for each supported type of key.
Method Detail |
---|
public void initialize()
public java.lang.Object generateKey(int identifier)
generateKey
in interface KeyGeneratorInterface
identifier
- Type of key to be generated (see class constants).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |