| Constructor and Description |
|---|
SimpleDecryptor(String privateKey)
Constructor with a private key.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encypted)
Decrpyt the given encrypted String.
|
public SimpleDecryptor(String privateKey)
privateKey - The private key.public String decrypt(String encypted) throws IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidAlgorithmParameterException
decrypt in interface Decryptorencypted - The String to decrypt.BadPaddingException - is thrown if Cipher.doFinal(byte[]) fails.IllegalBlockSizeException - is thrown if Cipher.doFinal(byte[]) fails.UnsupportedEncodingException - is thrown if creation of String object fails.InvalidAlgorithmParameterException - is thrown if initialization of the cypher object fails.NoSuchPaddingException - is thrown if instantiation of the cypher object fails.InvalidKeySpecException - is thrown if generation of the SecretKey object fails.NoSuchAlgorithmException - is thrown if instantiation of the SecretKeyFactory object fails.InvalidKeyException - is thrown if initialization of the cypher object fails.Decryptor.decrypt(java.lang.String)Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.