|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.cipher.Registry
Central repository of all Cipher
implementations
Constructor Summary | |
Registry()
|
Method Summary | |
boolean |
exists(java.lang.String name)
Wether specified name is that of an already registered Cipher factory |
java.lang.String[] |
getCiphers()
Gets the names of all registered ciphers. |
java.lang.String |
getDescription(java.lang.String name)
Gets the description of the cipher registered under specified name, or default string if not available (This never returns null ). |
int |
getNumberOfCiphers()
|
java.lang.String |
register(sam.cipher.Factory factory)
Registers a new Cipher class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Registry()
Method Detail |
public java.lang.String register(sam.cipher.Factory factory) throws java.lang.Error
Cipher
class.
java.lang.Error
public boolean exists(java.lang.String name)
Cipher
factory
public int getNumberOfCiphers()
public java.lang.String[] getCiphers()
public java.lang.String getDescription(java.lang.String name)
null
).
name
- the registration name of desired cipher.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |