public class CryptoUtilities extends Object
| Constructor and Description |
|---|
CryptoUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getDecodedBytes(byte[] key,
byte[] array) |
static byte[] |
getEncodedBytes(byte[] key,
byte[] buffer) |
static byte[] |
performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter,
byte[] array) |
static byte[] |
performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter,
InputStream inputStream) |
static byte[] |
performEncoding(org.bouncycastle.crypto.params.KeyParameter keyParameter,
byte[] array) |
static byte[] |
sign(byte[] data) |
static String |
sign(String string) |
public static String sign(String string) throws CodingException
CodingExceptionpublic static byte[] sign(byte[] data)
throws CodingException
CodingExceptionpublic static byte[] getEncodedBytes(byte[] key,
byte[] buffer)
throws CodingException
CodingExceptionpublic static byte[] getDecodedBytes(byte[] key,
byte[] array)
throws CodingException
CodingExceptionpublic static byte[] performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter,
byte[] array)
throws org.bouncycastle.crypto.DataLengthException,
IllegalStateException,
org.bouncycastle.crypto.InvalidCipherTextException,
IOException
org.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionIOExceptionpublic static byte[] performDecoding(org.bouncycastle.crypto.params.KeyParameter keyParameter,
InputStream inputStream)
throws org.bouncycastle.crypto.InvalidCipherTextException,
org.bouncycastle.crypto.DataLengthException,
IllegalStateException,
IOException
org.bouncycastle.crypto.InvalidCipherTextExceptionorg.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionIOExceptionpublic static byte[] performEncoding(org.bouncycastle.crypto.params.KeyParameter keyParameter,
byte[] array)
throws org.bouncycastle.crypto.DataLengthException,
IllegalStateException,
org.bouncycastle.crypto.InvalidCipherTextException,
IOException
org.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionorg.bouncycastle.crypto.InvalidCipherTextExceptionIOExceptionCopyright © 2007–2019 Andreas W. Bartels. All rights reserved.