Class RsaSecretEncryptor
java.lang.Object
org.springframework.security.rsa.crypto.RsaSecretEncryptor
- All Implemented Interfaces:
org.springframework.security.crypto.encrypt.BytesEncryptor,org.springframework.security.crypto.encrypt.TextEncryptor,RsaKeyHolder
public class RsaSecretEncryptor
extends Object
implements org.springframework.security.crypto.encrypt.BytesEncryptor, org.springframework.security.crypto.encrypt.TextEncryptor, RsaKeyHolder
- Author:
- Dave Syer
-
Constructor Summary
ConstructorsConstructorDescriptionRsaSecretEncryptor(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
-
RsaSecretEncryptor
public RsaSecretEncryptor() -
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
-
RsaSecretEncryptor
public RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm) -
RsaSecretEncryptor
public RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm, String salt, boolean gcm)
-
-
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
-
canDecrypt
public boolean canDecrypt()
-