org.openptk.crypto
Class Encryptor
java.lang.Object
org.openptk.crypto.Encryptor
public class Encryptor
- extends java.lang.Object
Field Summary |
static java.lang.String |
CONFIG
|
static java.lang.String |
DEFAULT
|
static java.lang.String |
NETWORK
|
Method Summary |
java.lang.Object |
clone()
|
static java.lang.String |
decrypt(java.lang.String encrypted)
|
static java.lang.String |
decrypt(java.lang.String encryptorName,
java.lang.String encrypted)
decrypt - decrypt a string using the Encryptor |
static java.lang.String |
encrypt(java.lang.String clear)
|
static java.lang.String |
encrypt(java.lang.String encryptorName,
java.lang.String clear)
|
static CryptoIF |
getCrypto()
|
static CryptoIF |
getCrypto(java.lang.String cryptoName)
|
static void |
setCrypto(CryptoIF crypto)
|
static void |
setCrypto(java.lang.String cryptoName,
CryptoIF crypto)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG
public static final java.lang.String CONFIG
- See Also:
- Constant Field Values
DEFAULT
public static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
NETWORK
public static final java.lang.String NETWORK
- See Also:
- Constant Field Values
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
decrypt
public static java.lang.String decrypt(java.lang.String encrypted)
throws CryptoException
- Throws:
CryptoException
decrypt
public static java.lang.String decrypt(java.lang.String encryptorName,
java.lang.String encrypted)
throws CryptoException
- decrypt - decrypt a string using the Encryptor
- Parameters:
encrypted
- text value to decrypt
- Returns:
- String decrypted value of the encrypted text
- Throws:
CryptoException
encrypt
public static java.lang.String encrypt(java.lang.String clear)
throws CryptoException
- Throws:
CryptoException
encrypt
public static java.lang.String encrypt(java.lang.String encryptorName,
java.lang.String clear)
throws CryptoException
- Throws:
CryptoException
getCrypto
public static CryptoIF getCrypto()
throws CryptoException
- Throws:
CryptoException
getCrypto
public static CryptoIF getCrypto(java.lang.String cryptoName)
throws CryptoException
- Throws:
CryptoException
setCrypto
public static void setCrypto(CryptoIF crypto)
throws CryptoException
- Throws:
CryptoException
setCrypto
public static void setCrypto(java.lang.String cryptoName,
CryptoIF crypto)
throws CryptoException
- Throws:
CryptoException
View/submit a bug or feature
For further API reference and developer documentation, see www.openptk.org.
That documentation contains more detailed, developer-targeted descriptions,
definitions of terms, workarounds, and working code examples.
Copyright (C) 2008-2012, Project OpenPTK. All Rights Reserved