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