
public class Rsa extends Object implements EncodeCipher
| Constructor and Description |
|---|
Rsa(Provider provider,
KeyExpression keyExpression) |
Rsa(RsaEncryptor encryptor,
RsaDecryptor decryptor) |
public Rsa(RsaEncryptor encryptor, RsaDecryptor decryptor)
public Rsa(Provider provider, KeyExpression keyExpression)
public String encrypt(String plainText)
EncodeEncryptorencrypt in interface EncodeEncryptorplainText - plain text to encryptpublic String encrypt(String plainText, Integer maxAge)
EncodeEncryptorencrypt in interface EncodeEncryptorplainText - plainText plain text to encryptmaxAge - maxAge in secondspublic String decrypt(String encryptedAndEncoded)
EncodeDecryptordecrypt in interface EncodeDecryptorencryptedAndEncoded - encrypted and encodedCopyright © 2017. All rights reserved.