com.kloudtek.kryptotek.jce.JCEHMACSHA1Key Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kryptotek-core Show documentation
Show all versions of kryptotek-core Show documentation
Kryptotek provides an easy to use abstraction layer for cryptographic functions
The newest version!
/*
* Copyright (c) 2015 Kloudtek Ltd
*/
package com.kloudtek.kryptotek.jce;
import com.kloudtek.kryptotek.EncodedKey;
import com.kloudtek.kryptotek.InvalidKeyEncodingException;
import com.kloudtek.kryptotek.key.HMACSHA1Key;
import com.kloudtek.kryptotek.key.KeyType;
import javax.crypto.SecretKey;
import java.security.InvalidKeyException;
import static com.kloudtek.kryptotek.DigestAlgorithm.SHA1;
/**
* Created by yannick on 18/12/2014.
*/
public class JCEHMACSHA1Key extends JCEHMACKey implements HMACSHA1Key {
public JCEHMACSHA1Key() {
super(SHA1);
}
public JCEHMACSHA1Key(JCECryptoEngine cryptoEngine, SecretKey secretKey) {
super(cryptoEngine, SHA1, secretKey);
}
public JCEHMACSHA1Key(JCECryptoEngine cryptoEngine, byte[] encodedRawKey) {
super(cryptoEngine, SHA1, encodedRawKey);
}
public JCEHMACSHA1Key(JCECryptoEngine cryptoEngine, EncodedKey encodedKey) throws InvalidKeyEncodingException, InvalidKeyException {
super(cryptoEngine, SHA1, encodedKey);
}
@Override
public KeyType getType() {
return KeyType.HMAC_SHA1;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy