public class RsaSecretEncryptor extends Object implements org.springframework.security.crypto.encrypt.BytesEncryptor, org.springframework.security.crypto.encrypt.TextEncryptor, RsaKeyHolder
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecrypt() |
byte[] |
decrypt(byte[] encryptedByteArray) |
String |
decrypt(String encryptedText) |
byte[] |
encrypt(byte[] byteArray) |
String |
encrypt(String text) |
String |
getPublicKey() |
public RsaSecretEncryptor(RsaAlgorithm algorithm, String salt, boolean gcm)
public RsaSecretEncryptor(RsaAlgorithm algorithm, String salt)
public RsaSecretEncryptor(RsaAlgorithm algorithm, boolean gcm)
public RsaSecretEncryptor(RsaAlgorithm algorithm)
public RsaSecretEncryptor()
public RsaSecretEncryptor(KeyPair keyPair, RsaAlgorithm algorithm, String salt, boolean gcm)
public RsaSecretEncryptor(KeyPair keyPair, RsaAlgorithm algorithm, String salt)
public RsaSecretEncryptor(KeyPair keyPair, RsaAlgorithm algorithm)
public RsaSecretEncryptor(KeyPair keyPair)
public RsaSecretEncryptor(String pemData, RsaAlgorithm algorithm, String salt)
public RsaSecretEncryptor(String pemData, RsaAlgorithm algorithm)
public RsaSecretEncryptor(String pemData)
public RsaSecretEncryptor(PublicKey publicKey, RsaAlgorithm algorithm, String salt, boolean gcm)
public RsaSecretEncryptor(PublicKey publicKey, RsaAlgorithm algorithm, String salt)
public RsaSecretEncryptor(PublicKey publicKey, RsaAlgorithm algorithm)
public RsaSecretEncryptor(PublicKey publicKey)
public RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey)
public RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm)
public RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey, RsaAlgorithm algorithm, String salt, boolean gcm)
public String getPublicKey()
getPublicKey in interface RsaKeyHolderpublic String encrypt(String text)
encrypt in interface org.springframework.security.crypto.encrypt.TextEncryptorpublic String decrypt(String encryptedText)
decrypt in interface org.springframework.security.crypto.encrypt.TextEncryptorpublic byte[] encrypt(byte[] byteArray)
encrypt in interface org.springframework.security.crypto.encrypt.BytesEncryptorpublic byte[] decrypt(byte[] encryptedByteArray)
decrypt in interface org.springframework.security.crypto.encrypt.BytesEncryptorpublic boolean canDecrypt()
Copyright © 2021 SpringSource. All rights reserved.