Chapter 13: Extending New Ciphers with the JDK

  

Introduction

In order to implement a cipher algorithm in the JDK 1.4 and to provide it as a framework to be used by other developers, you use the service provider framework. The service provider framework for ciphers is part of the Java Cryptography Extension (JCE), which normally makes up the javax.crypto package of the JDK 1.4. The JCE before JDK 1.4 was a separate, distributed package that has recently been integrated into the JDK. The service provider framework and interfaces provide a common framework and a means to hide the implementation of the cipher algorithms themselves .

When you use the Service Provider Interface, a Provider class provides a mapping for a specific algorithm to a class that implements the algorithm. By using a mapping as a service provider in this way, an algorithm can be made to point to a different service provider with very little work and very few changes to the system environment. The RSA algorithm and some code from the previous chapter is used. The stream algorithm is also used to demonstrate how a cipher engine can be built to add new cipher algorithms to be extended into the JDK.

  


Java Security Solutions
Java Security Solutions
ISBN: 0764549286
EAN: 2147483647
Year: 2001
Pages: 222

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net