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, wait
getPWString
public CryptoHandler()
public CryptoHandler(java.security.Key _cryptKey)
public void initECipher() throws java.security.InvalidKeyException
java.security.InvalidKeyException
public void initDCipher() throws java.security.InvalidKeyException
java.security.InvalidKeyException
public byte[] encrypt(java.lang.String s)
encrypt
in interface CryptoHandlerI
public byte[] encrypt(char[] c)
encrypt
in interface CryptoHandlerI
public byte[] encrypt(byte[] b)
encrypt
in interface CryptoHandlerI
public void encrypt(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
encrypt
in interface CryptoHandlerI
java.io.IOException
public void decrypt(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
decrypt
in interface CryptoHandlerI
java.io.IOException
public byte[] decrypt(byte[] b)
decrypt
in interface CryptoHandlerI
public java.lang.String decryptToString(byte[] b)
decryptToString
in interface CryptoHandlerI
public java.lang.String toBase64(byte[] b)
toBase64
in interface CryptoHandlerI
public byte[] fromBase64(java.lang.String s)
fromBase64
in interface CryptoHandlerI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.