hcrypto.provider
Class Provider

java.lang.Object
  |
  +--hcrypto.provider.Provider
Direct Known Subclasses:
DefaultProvider, RamProvider

public class Provider
extends java.lang.Object

This class represents a provider for the Historical Cipher API. A provider keeps a list of available cipher algorithms and their keys. Each provider has a name. The default provider, DefaultProvider, is a subclass of this class that implements a number of example algorithms. To use the DefaultProvider in an application, use the following code:

   public static void main (String args[]) throws Exception {
       Provider.addProvider(new DefaultProvider("Default"));
       Provider.addProvider(new MyProvider("Myname"));
       ...
   }
 
In this case both the default provider and a user-defined provider are added to the list of providers that can be searched for implementations of cipher algorithms.

See also:


DefaultProvider

To implement and use your own version of an algorithm, take the following steps: