Class RsaRawEncryptor
java.lang.Object
org.springframework.security.rsa.crypto.RsaRawEncryptor
- All Implemented Interfaces:
org.springframework.security.crypto.encrypt.BytesEncryptor,org.springframework.security.crypto.encrypt.TextEncryptor,RsaKeyHolder
public class RsaRawEncryptor
extends Object
implements org.springframework.security.crypto.encrypt.BytesEncryptor, org.springframework.security.crypto.encrypt.TextEncryptor, RsaKeyHolder
- Author:
- Dave Syer
-
Constructor Summary
ConstructorsConstructorDescriptionRsaRawEncryptor(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 Summary
-
Constructor Details
-
RsaRawEncryptor
-
RsaRawEncryptor
public RsaRawEncryptor() -
RsaRawEncryptor
-
RsaRawEncryptor
-
RsaRawEncryptor
-
RsaRawEncryptor
-
RsaRawEncryptor
-
RsaRawEncryptor
public RsaRawEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm)
-
-
Method Details
-
getPublicKey
- Specified by:
getPublicKeyin interfaceRsaKeyHolder
-
encrypt
- Specified by:
encryptin interfaceorg.springframework.security.crypto.encrypt.TextEncryptor
-
decrypt
- Specified by:
decryptin interfaceorg.springframework.security.crypto.encrypt.TextEncryptor
-
encrypt
public byte[] encrypt(byte[] byteArray) - Specified by:
encryptin interfaceorg.springframework.security.crypto.encrypt.BytesEncryptor
-
decrypt
public byte[] decrypt(byte[] encryptedByteArray) - Specified by:
decryptin interfaceorg.springframework.security.crypto.encrypt.BytesEncryptor
-