Class RsaRawEncryptor
java.lang.Object
org.springframework.security.crypto.encrypt.RsaRawEncryptor
- All Implemented Interfaces:
- BytesEncryptor,- RsaKeyHolder,- TextEncryptor
- Since:
- 6.3
- 
Constructor SummaryConstructorsConstructorDescriptionRsaRawEncryptor(String pemData) RsaRawEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey) RsaRawEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm) RsaRawEncryptor(KeyPair keyPair) RsaRawEncryptor(KeyPair keyPair, RsaAlgorithm algorithm) RsaRawEncryptor(PublicKey publicKey) RsaRawEncryptor(RsaAlgorithm algorithm) 
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]decrypt(byte[] encryptedByteArray) Decrypt the byte array.Decrypt the encrypted text string.byte[]encrypt(byte[] byteArray) Encrypt the byte array.Encrypt the raw text string.static intgetByteLength(RSAKey key) 
- 
Constructor Details- 
RsaRawEncryptor
- 
RsaRawEncryptorpublic RsaRawEncryptor()
- 
RsaRawEncryptor
- 
RsaRawEncryptor
- 
RsaRawEncryptor
- 
RsaRawEncryptor
- 
RsaRawEncryptor
- 
RsaRawEncryptorpublic RsaRawEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm) 
 
- 
- 
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
 
- 
getByteLength
 
-