|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.controls.Cryptic
A class to represent an encrypted version of a UTF-8-encoded String.
Constructor Summary | |
protected |
Cryptic()
Protected no-arg constructor has null cryptic. |
|
Cryptic(java.lang.String input)
Public constructor with input string. |
|
Cryptic(java.lang.String input,
java.lang.String password)
Public constructor with input and password. |
Method Summary | |
java.lang.String |
decrypt()
Gets the decrypted string. |
java.lang.String |
decrypt(java.lang.String password)
Gets the decrypted string using a password. |
java.lang.String |
encrypt(java.lang.String content)
Encrypts the input and saves in cryptic form. |
java.lang.String |
encrypt(java.lang.String content,
java.lang.String password)
Encrypts the input with a password and saves in cryptic form. |
java.lang.String |
getCryptic()
Gets the cryptic. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
void |
setCryptic(java.lang.String encrypted)
Sets the cryptic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Cryptic()
public Cryptic(java.lang.String input)
input
- UTF-8 String to encryptpublic Cryptic(java.lang.String input, java.lang.String password)
input
- UTF-8 String to encryptMethod Detail |
public java.lang.String encrypt(java.lang.String content)
public java.lang.String encrypt(java.lang.String content, java.lang.String password)
public java.lang.String decrypt()
public java.lang.String decrypt(java.lang.String password)
password
- the password
public java.lang.String getCryptic()
public void setCryptic(java.lang.String encrypted)
encrypted
- an encrypted stringpublic static XML.ObjectLoader getLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |