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 $

Since: Cryptix 2.2.2

Author: David Hopwood Jill Baker Raif S. Naffah

Field Summary
static longserialVersionUID
Constructor Summary
Cryptix()
Constructs a Cryptix security provider object.
Method Summary
StringgetProperty(String key)
StringgetProperty(String key, String defaultValue)
voidlist(PrintStream out)
voidlist(PrintWriter out)
EnumerationpropertyNames()
voidsave(OutputStream os, String comment)
StringtoString()

Field Detail

serialVersionUID

static final long serialVersionUID

Constructor Detail

Cryptix

public Cryptix()
Constructs a Cryptix security provider object.

Method Detail

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()