edu.ucf.cs.courses.cop4610l.beans.crypto
Class CryptoBean

public class CryptoBean
implements Serializable

Title: COP4610L Beans

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
Mathew B. Lowery
Method Detail

findKey

private Key findKey(String cipherName)
This method does the following: Loads keystore if it exists on disk. Otherwise it creates a new one. If the key with the algorithm given by cipherName exists, it returns it. Otherwise it creates a new key with the given algorithm, stores it in the keystore, then saves the updated keystore.
Parameters:
cipherName - algorithm of key to look for
Returns:
existing key or new one if no existing key