
public class HmacSha1 extends KeyObject
| Constructor and Description |
|---|
HmacSha1() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
crypt(byte[] plaintext)
Crypt one array of bytes and returns the crypted array of bytes
|
byte[] |
decrypt(byte[] ciphertext)
Decrypt an array of bytes and returns the uncrypted array of bytes
|
String |
getAlgorithm() |
String |
getFileExtension() |
String |
getInstance() |
int |
getKeySize() |
Cipher |
toCrypt()
Returns a cipher for encryption associated with the key
|
Cipher |
toDecrypt()
Returns a cipher for decryption associated with the key
|
crypt, cryptToHex, cryptToHex, decodeHex, decryptHexFile, decryptHexInBytes, decryptHexInBytes, decryptHexInString, decryptHexInString, decryptInString, encodeHex, generateKey, getSecretKey, getSecretKeyInBytes, keyReady, saveSecretKey, setSecretKey, setSecretKey, setSecretKeypublic static final String EXTENSION
public final String getAlgorithm()
getAlgorithm in class KeyObjectpublic final String getInstance()
getInstance in class KeyObjectpublic final int getKeySize()
getKeySize in class KeyObjectpublic final String getFileExtension()
getFileExtension in class KeyObjectpublic final Cipher toCrypt()
KeyObjectpublic final byte[] crypt(byte[] plaintext)
throws Exception
KeyObjectpublic final Cipher toDecrypt()
KeyObjectCopyright © 2009–2022 Waarp. All rights reserved.