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