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