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, setSecretKey
public static final String EXTENSION
public final String getAlgorithm()
getAlgorithm
in class KeyObject
public final String getInstance()
getInstance
in class KeyObject
public final int getKeySize()
getKeySize
in class KeyObject
public final String getFileExtension()
getFileExtension
in class KeyObject
public final Cipher toCrypt()
KeyObject
public final byte[] crypt(byte[] plaintext) throws Exception
KeyObject
public final Cipher toDecrypt()
KeyObject
Copyright © 2009–2022 Waarp. All rights reserved.