public class RsaEncryptor extends InitializeObject implements Encryptor
mutex| Constructor and Description |
|---|
RsaEncryptor() |
| Modifier and Type | Method and Description |
|---|---|
RsaEncryptor |
copy() |
byte[] |
decrypt(byte[] message) |
void |
destroy() |
byte[] |
encrypt(byte[] message) |
protected void |
init() |
RsaEncryptor |
setPrivateKey(PrivateKey privateKey) |
RsaEncryptor |
setPrivateKey(String privateKeyPem) |
RsaEncryptor |
setProvider(String provider) |
RsaEncryptor |
setPublicKey(PublicKey publicKey) |
RsaEncryptor |
setPublicKey(String publicKeyPem) |
RsaEncryptor |
setTransformation(String transformation) |
assertNotInitialized, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected void init()
throws Exception
init in class InitializeObjectExceptionpublic void destroy()
throws DestroyException
destroy in interface InitializeSupportdestroy in class InitializeObjectDestroyExceptionpublic byte[] encrypt(byte[] message)
throws CryptoException
encrypt in interface EncryptorCryptoExceptionpublic byte[] decrypt(byte[] message)
throws CryptoException
decrypt in interface EncryptorCryptoExceptionpublic RsaEncryptor setTransformation(String transformation)
public RsaEncryptor setProvider(String provider)
public RsaEncryptor setPrivateKey(PrivateKey privateKey)
public RsaEncryptor setPrivateKey(String privateKeyPem)
public RsaEncryptor setPublicKey(PublicKey publicKey)
public RsaEncryptor setPublicKey(String publicKeyPem)
public RsaEncryptor copy()
Copyright © 2019. All rights reserved.