public abstract class CryptoHandler extends java.lang.Object implements CryptoHandlerI, java.io.Externalizable
| Constructor and Description |
|---|
CryptoHandler() |
CryptoHandler(java.security.Key _cryptKey) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] b) |
void |
decrypt(java.io.InputStream is,
java.io.OutputStream os) |
java.lang.String |
decryptToString(byte[] b) |
byte[] |
encrypt(byte[] b) |
byte[] |
encrypt(char[] c) |
void |
encrypt(java.io.InputStream is,
java.io.OutputStream os) |
byte[] |
encrypt(java.lang.String s) |
byte[] |
fromBase64(java.lang.String s) |
void |
initDCipher() |
void |
initECipher() |
java.lang.String |
toBase64(byte[] b) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPWStringpublic CryptoHandler()
public CryptoHandler(java.security.Key _cryptKey)
public void initECipher()
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic void initDCipher()
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic byte[] encrypt(java.lang.String s)
encrypt in interface CryptoHandlerIpublic byte[] encrypt(char[] c)
encrypt in interface CryptoHandlerIpublic byte[] encrypt(byte[] b)
encrypt in interface CryptoHandlerIpublic void encrypt(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
encrypt in interface CryptoHandlerIjava.io.IOExceptionpublic void decrypt(java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
decrypt in interface CryptoHandlerIjava.io.IOExceptionpublic byte[] decrypt(byte[] b)
decrypt in interface CryptoHandlerIpublic java.lang.String decryptToString(byte[] b)
decryptToString in interface CryptoHandlerIpublic java.lang.String toBase64(byte[] b)
toBase64 in interface CryptoHandlerIpublic byte[] fromBase64(java.lang.String s)
fromBase64 in interface CryptoHandlerICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.