| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected SecretKey | Returns: the new HMAC-SHA1 keyImplements abstract javax. Generates an HMAC-SHA1 key. |
| protected void | engineInit(SecureRandom
the source of randomness for this generator random)Implements abstract javax. Initializes this key generator. |
| protected void | engineInit(AlgorithmParameterSpec
the key generation parameters params, SecureRandom the source of randomness for this key generator random)Implements abstract javax. Initializes this key generator with the specified parameter set and a user-provided source of randomness. |
| protected void | engineInit(int
the keysize. This is an algorithm-specific
metric specified in number of bits. keysize, SecureRandom the source of randomness for this key generator random)Implements abstract javax. Initializes this key generator for a certain keysize, using the given source of randomness. |
| keysize | back to summary |
|---|---|
| private int keysize | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| HmacSHA1KeyGenerator | back to summary |
|---|---|
| public HmacSHA1KeyGenerator() Empty constructor | |
| engineGenerateKey | back to summary |
|---|---|
| protected SecretKey engineGenerateKey() Implements abstract javax. Generates an HMAC-SHA1 key.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(SecureRandom random) Implements abstract javax. Initializes this key generator.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException Implements abstract javax. Initializes this key generator with the specified parameter set and a user-provided source of randomness.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int keysize, SecureRandom random) Implements abstract javax. Initializes this key generator for a certain keysize, using the given source of randomness.
| |