| java.lang.Object | ||
| ↳ | javax.crypto.KeyGeneratorSpi | |
| ↳ | com.sun.crypto.provider.HmacSHA1KeyGenerator | |
This class generates a secret key for use with the HMAC-SHA1 algorithm.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Verify the SunJCE provider in the constructor.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Generates an HMAC-SHA1 key.
| |||||||||||
Initializes this key generator for a certain keysize, using the given
source of randomness.
| |||||||||||
Initializes this key generator.
| |||||||||||
Initializes this key generator with the specified parameter
set and a user-provided source of randomness.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
javax.crypto.KeyGeneratorSpi
| |||||||||||
From class
java.lang.Object
| |||||||||||
Verify the SunJCE provider in the constructor.
| SecurityException | if fails to verify its own integrity |
|---|
Initializes this key generator for a certain keysize, using the given source of randomness.
| keysize | the keysize. This is an algorithm-specific metric specified in number of bits. |
|---|---|
| random | the source of randomness for this key generator |
Initializes this key generator.
| random | the source of randomness for this generator |
|---|
Initializes this key generator with the specified parameter set and a user-provided source of randomness.
| params | the key generation parameters |
|---|---|
| random | the source of randomness for this key generator |
| InvalidAlgorithmParameterException | if params is
inappropriate for this key generator
|
|---|