hcrypto.provider
Class DefaultProvider
java.lang.Object
|
+--hcrypto.provider.Provider
|
+--hcrypto.provider.DefaultProvider
- public class DefaultProvider
- extends Provider
This class represents the default provider for the
Historical Cipher API.
To implement a Provider subclass, simply assign
a name to the inherited name instance variable
and place one call to put(), for each algorithm
that is implemented by this provider. Each call to put()
should give the name of the algorithm, the name of the
bytecode "Engine" class that implements the algorithm, and the
name of the bytecode "Key" class that implements the key. Here's
an example constructor that implements a couple of ciphers:
public MyProvider(String name) {
this.name = name;
put("Caesar", "hcrypto.engines.CaesarEngine", "hcrypto.engines.CaesarKey");
put("Vigenere", "hcrypto.engines.VigenereEngine", "hcrypto.engines.VigenereKey");
}
Constructor Summary |
DefaultProvider(java.lang.String name)
The constructor sets the name of the provider
and puts an entry into the main provider's internal
lists for the engine and the key of each algorithm it implements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProvider
public DefaultProvider(java.lang.String name)
- The constructor sets the name of the provider
and puts an entry into the main provider's internal
lists for the engine and the key of each algorithm it implements.