|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Crypt
This class provides an interface for building encryption methods. The interface facillitates building a 'plugin' type architecture.
| Method Summary | |
|---|---|
char[] |
decode(char[] chars)
This method decodes the character array passed in and returns a decrypted version of the character array. |
java.lang.String |
decode(java.lang.String chars)
This method decodes the string passed in and returns a decrypted version of the string. |
char[] |
encode(char[] chars)
This method encodes the character array passed in and returns an encrypted character array. |
java.lang.String |
encode(java.lang.String chars)
This method encodes the string passed in and returns the encrypted string. |
void |
init(java.lang.String key,
java.util.Map map)
Initialize the cryptographic functions. |
| Method Detail |
|---|
void init(java.lang.String key,
java.util.Map map)
key - The key to use with this object.map - Any other parameters that are needed
to initialize everything.java.lang.String encode(java.lang.String chars)
encode in interface Codecchars - The plain text string that should be encode
char[] encode(char[] chars)
encode in interface Codecchars - The plain text character array that should be encode
char[] decode(char[] chars)
decode in interface Codecchars - The plain text character array that should be encode
java.lang.String decode(java.lang.String chars)
decode in interface Codecchars - The plain text string that should be encode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||