public class RsaSecretEncryptor extends Object implements org.springframework.security.crypto.encrypt.BytesEncryptor, org.springframework.security.crypto.encrypt.TextEncryptor, RsaKeyHolder
| Constructor and Description |
|---|
RsaSecretEncryptor() |
RsaSecretEncryptor(KeyPair keyPair) |
RsaSecretEncryptor(PublicKey publicKey) |
RsaSecretEncryptor(String pemData) |
RsaSecretEncryptor(String encoding,
PublicKey publicKey,
PrivateKey privateKey) |
public static final String ALGORITHM
public RsaSecretEncryptor()
public RsaSecretEncryptor(KeyPair keyPair)
public RsaSecretEncryptor(String pemData)
public RsaSecretEncryptor(PublicKey publicKey)
public RsaSecretEncryptor(String encoding, PublicKey publicKey, PrivateKey privateKey)
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.BytesEncryptorCopyright © 2015 SpringSource. All rights reserved.