Skip to content

Commit

Permalink
Fix "SecretSpecKey" typo in Hashing javadoc
Browse files Browse the repository at this point in the history
The actual JDK class is named SecretKeySpec, not SecretSpecKey.  Arguably this is confusing since it does implement Key, but then again it also implements KeySpec...

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=147632964
  • Loading branch information
nfelt authored and cpovirk committed Feb 16, 2017
1 parent 89a8e3f commit 6f96135
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guava/src/com/google/common/hash/Hashing.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public static HashFunction hmacMd5(Key key) {

/**
* Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
* MD5 (128 hash bits) hash function and a {@link SecretSpecKey} created from the given byte array
* MD5 (128 hash bits) hash function and a {@link SecretKeySpec} created from the given byte array
* and the MD5 algorithm.
*
*
Expand All @@ -285,7 +285,7 @@ public static HashFunction hmacSha1(Key key) {

/**
* Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
* SHA-1 (160 hash bits) hash function and a {@link SecretSpecKey} created from the given byte
* SHA-1 (160 hash bits) hash function and a {@link SecretKeySpec} created from the given byte
* array and the SHA-1 algorithm.
*
*
Expand All @@ -311,7 +311,7 @@ public static HashFunction hmacSha256(Key key) {

/**
* Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
* SHA-256 (256 hash bits) hash function and a {@link SecretSpecKey} created from the given byte
* SHA-256 (256 hash bits) hash function and a {@link SecretKeySpec} created from the given byte
* array and the SHA-256 algorithm.
*
*
Expand All @@ -337,7 +337,7 @@ public static HashFunction hmacSha512(Key key) {

/**
* Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
* SHA-512 (512 hash bits) hash function and a {@link SecretSpecKey} created from the given byte
* SHA-512 (512 hash bits) hash function and a {@link SecretKeySpec} created from the given byte
* array and the SHA-512 algorithm.
*
*
Expand Down

0 comments on commit 6f96135

Please sign in to comment.