All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.provider.Cryptix

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----java.util.Properties
                           |
                           +----java.security.Provider
                                   |
                                   +----cryptix.provider.Cryptix

public class Cryptix
extends Provider
This class acts as a security provider for the Java Cryptography Architecture. The mapping between cipher names and classes is stored in the Cryptix.properties file (see CryptixProperties).

SECURITY: In JavaSoft's version of JCE, Provider indirectly extends Hashtable, which means that it would normally be possible to call the put, remove or clear methods to change properties without any security check (also the load method from Properties). This is arguably a design bug in JCA and/or the Properties class.

This class works around the potential security problem by not using the Hashtable superclass. Instead it delegates to CryptixProperties.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.5 $

Author:
David Hopwood, Jill Baker, Raif S. Naffah

Constructor Index

 o Cryptix()
Constructs a Cryptix security provider object.

Method Index

 o getProperty(String)
 o getProperty(String, String)
 o list(PrintStream)
 o list(PrintWriter)
 o propertyNames()
 o save(OutputStream, String)
 o toString()

Constructors

 o Cryptix
 public Cryptix()
Constructs a Cryptix security provider object.

Methods

 o toString
 public String toString()
Overrides:
toString in class Provider
 o save
 public void save(OutputStream os,
                  String comment)
Overrides:
save in class Properties
 o getProperty
 public String getProperty(String key)
Overrides:
getProperty in class Properties
 o getProperty
 public String getProperty(String key,
                           String defaultValue)
Overrides:
getProperty in class Properties
 o propertyNames
 public Enumeration propertyNames()
Overrides:
propertyNames in class Properties
 o list
 public void list(PrintStream out)
Overrides:
list in class Properties
 o list
 public void list(PrintWriter out)
Overrides:
list in class Properties

All Packages  Class Hierarchy  This Package  Previous  Next  Index