forked from mirror/jwt
documentation
This commit is contained in:
parent
2ef58916cc
commit
35c43501ff
2
hmac.go
2
hmac.go
|
@ -7,11 +7,13 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Implements the HMAC-SHA family of signing methods signing methods
|
||||||
type SigningMethodHMAC struct {
|
type SigningMethodHMAC struct {
|
||||||
Name string
|
Name string
|
||||||
Hash crypto.Hash
|
Hash crypto.Hash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Specific instances for HS256 and company
|
||||||
var (
|
var (
|
||||||
SigningMethodHS256 *SigningMethodHMAC
|
SigningMethodHS256 *SigningMethodHMAC
|
||||||
SigningMethodHS384 *SigningMethodHMAC
|
SigningMethodHS384 *SigningMethodHMAC
|
||||||
|
|
2
rsa.go
2
rsa.go
|
@ -6,11 +6,13 @@ import (
|
||||||
"crypto/rsa"
|
"crypto/rsa"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Implements the RSA family of signing methods signing methods
|
||||||
type SigningMethodRSA struct {
|
type SigningMethodRSA struct {
|
||||||
Name string
|
Name string
|
||||||
Hash crypto.Hash
|
Hash crypto.Hash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Specific instances for RS256 and company
|
||||||
var (
|
var (
|
||||||
SigningMethodRS256 *SigningMethodRSA
|
SigningMethodRS256 *SigningMethodRSA
|
||||||
SigningMethodRS384 *SigningMethodRSA
|
SigningMethodRS384 *SigningMethodRSA
|
||||||
|
|
Loading…
Reference in New Issue