Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions src/main/java/net/oauth/jsontoken/crypto/RsaSHA1Verifier.java

This file was deleted.

14 changes: 14 additions & 0 deletions src/main/java/net/oauth/jsontoken/crypto/SignatureAlgorithm.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,23 @@

/** Enum of the signature algorithms supported by this package. */
public enum SignatureAlgorithm {
/** HMAC with SHA-256 */
HS256("SHA256"),
/**
* HMAC with SHA-1
*
* @deprecated SHA-1 is vulnerable to collision attacks
*/
@Deprecated
HS1("SHA1"),
/** RSA with SHA-256 */
RS256("SHA256"),
/**
* RSA with SHA-1
*
* @deprecated SHA-1 is vulnerable to collision attacks
*/
@Deprecated
RS1("SHA1");

private final String hashAlg;
Expand Down