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)
EncodeEncryptor
encrypt
in interface EncodeEncryptor
plainText
- plain text to encryptpublic String encrypt(String plainText, Integer maxAge)
EncodeEncryptor
encrypt
in interface EncodeEncryptor
plainText
- plainText plain text to encryptmaxAge
- maxAge in secondspublic String decrypt(String encryptedAndEncoded)
EncodeDecryptor
decrypt
in interface EncodeDecryptor
encryptedAndEncoded
- encrypted and encodedCopyright © 2017. All rights reserved.