-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gabriel Sanches
committed
Sep 3, 2018
1 parent
3b855be
commit abc48b1
Showing
1 changed file
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package jwt | ||
|
||
const ( | ||
MethodHS256 = "HS256" // Method name for HMAC and SHA-256. | ||
MethodHS384 = "HS384" // Method name for HMAC and SHA-384. | ||
MethodHS512 = "HS512" // Method name for HMAC and SHA-512. | ||
MethodRS256 = "RS256" // Method name for RSA and SHA-256. | ||
MethodRS384 = "RS384" // Method name for RSA and SHA-384. | ||
MethodRS512 = "RS512" // Method name for RSA and SHA-512. | ||
MethodES256 = "ES256" // Method name for ECDSA and SHA-256. | ||
MethodES384 = "ES384" // Method name for ECDSA and SHA-384. | ||
MethodES512 = "ES512" // Method name for ECDSA and SHA-512. | ||
MethodNone = "none" // Method name for "none". | ||
// MethodHS256 is the method name for HMAC and SHA-256. | ||
MethodHS256 = "HS256" | ||
// MethodHS384 is the method name for HMAC and SHA-384. | ||
MethodHS384 = "HS384" | ||
// MethodHS512 is the method name for HMAC and SHA-512. | ||
MethodHS512 = "HS512" | ||
// MethodRS256 is the method name for RSA and SHA-256. | ||
MethodRS256 = "RS256" | ||
// MethodRS384 is the method name for RSA and SHA-384. | ||
MethodRS384 = "RS384" | ||
// MethodRS512 is the method name for RSA and SHA-512. | ||
MethodRS512 = "RS512" | ||
// MethodES256 is the method name for ECDSA and SHA-256. | ||
MethodES256 = "ES256" | ||
// MethodES384 is the method name for ECDSA and SHA-384. | ||
MethodES384 = "ES384" | ||
// MethodES512 is the method name for ECDSA and SHA-512. | ||
MethodES512 = "ES512" | ||
// MethodNone is the method name for an unsecured JWT. | ||
MethodNone = "none" | ||
) |