public class SimpleDecryptor extends Object implements StringDecryptor
SimpleDecryptor is a simple StringDecryptor implementation.| Constructor and Description |
|---|
SimpleDecryptor(String privateKey)
Instantiates a new
SimpleDecryptor with the given private key. |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encypted)
Decrypt the given encrypted object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewOperationModepublic SimpleDecryptor(String privateKey)
SimpleDecryptor with the given private key.privateKey - The private key.public String decrypt(String encypted) throws IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException
decrypt in interface Decryptor<String,String>encypted - The object to decrypt.IllegalBlockSizeExceptionBadPaddingExceptionUnsupportedEncodingExceptionInvalidKeyExceptionNoSuchAlgorithmExceptionInvalidKeySpecExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterExceptionCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.