cryptix.provider

Class 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.7 $

Authors:
David Hopwood
Jill Baker
Raif S. Naffah

Since:
Cryptix 2.2.2

Field Summary

(package private) static long
serialVersionUID

Constructor Summary

Cryptix()
Constructs a Cryptix security provider object.

Method Summary

String
getProperty(String key)
String
getProperty(String key, String defaultValue)
void
list(PrintStream out)
void
list(PrintWriter out)
Enumeration
propertyNames()
void
save(OutputStream os, String comment)
String
toString()

Field Details

serialVersionUID

(package private) static final long serialVersionUID

Field Value:
2535048358772783954L

Constructor Details

Cryptix

public Cryptix()
Constructs a Cryptix security provider object.

Method Details

getProperty

public String getProperty(String key)


getProperty

public String getProperty(String key,
                          String defaultValue)


list

public void list(PrintStream out)


list

public void list(PrintWriter out)


propertyNames

public Enumeration propertyNames()


save

public void save(OutputStream os,
                 String comment)


toString

public String toString()