Class RsaSecretEncryptor
java.lang.Object
org.springframework.security.crypto.encrypt.RsaSecretEncryptor
- All Implemented Interfaces:
- BytesEncryptor,- RsaKeyHolder,- TextEncryptor
public class RsaSecretEncryptor
extends Object
implements BytesEncryptor, TextEncryptor, RsaKeyHolder
- Since:
- 6.3
- 
Constructor SummaryConstructorsConstructorDescriptionRsaSecretEncryptor(String pemData) RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey) RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm) RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm, String salt, boolean gcm) RsaSecretEncryptor(String pemData, RsaAlgorithm algorithm) RsaSecretEncryptor(String pemData, RsaAlgorithm algorithm, String salt) RsaSecretEncryptor(KeyPair keyPair) RsaSecretEncryptor(KeyPair keyPair, RsaAlgorithm algorithm) RsaSecretEncryptor(KeyPair keyPair, RsaAlgorithm algorithm, String salt) RsaSecretEncryptor(KeyPair keyPair, RsaAlgorithm algorithm, String salt, boolean gcm) RsaSecretEncryptor(PublicKey publicKey) RsaSecretEncryptor(PublicKey publicKey, RsaAlgorithm algorithm) RsaSecretEncryptor(PublicKey publicKey, RsaAlgorithm algorithm, String salt) RsaSecretEncryptor(PublicKey publicKey, RsaAlgorithm algorithm, String salt, boolean gcm) RsaSecretEncryptor(RsaAlgorithm algorithm) RsaSecretEncryptor(RsaAlgorithm algorithm, boolean gcm) RsaSecretEncryptor(RsaAlgorithm algorithm, String salt) RsaSecretEncryptor(RsaAlgorithm algorithm, String salt, boolean gcm) 
- 
Method Summary
- 
Constructor Details- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptorpublic RsaSecretEncryptor()
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptor
- 
RsaSecretEncryptorpublic RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm) 
- 
RsaSecretEncryptorpublic RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm, String salt, boolean gcm) 
 
- 
- 
Method Details- 
getPublicKey- Specified by:
- getPublicKeyin interface- RsaKeyHolder
 
- 
encryptDescription copied from interface:TextEncryptorEncrypt the raw text string.- Specified by:
- encryptin interface- TextEncryptor
 
- 
decryptDescription copied from interface:TextEncryptorDecrypt the encrypted text string.- Specified by:
- decryptin interface- TextEncryptor
 
- 
encryptpublic byte[] encrypt(byte[] byteArray) Description copied from interface:BytesEncryptorEncrypt the byte array.- Specified by:
- encryptin interface- BytesEncryptor
 
- 
decryptpublic byte[] decrypt(byte[] encryptedByteArray) Description copied from interface:BytesEncryptorDecrypt the byte array.- Specified by:
- decryptin interface- BytesEncryptor
 
- 
canDecryptpublic boolean canDecrypt()
 
-