Skip to content

Commit

Permalink
Fix documentation for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Sanches committed Sep 3, 2018
1 parent 3b855be commit abc48b1
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions methods.go
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"
)

0 comments on commit abc48b1

Please sign in to comment.