Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJoseJwkResource ¶
func NewJoseJwksResource ¶
func NewJoseJwtSignResource ¶
Types ¶
type ECDSAPrivateKey ¶
type ECDSAPrivateKey struct {
*ecdsa.PrivateKey
}
For ECDSA private key type, the signing function will auto-select the appropriate signing algorithm to use. Therefore no 'Alg' is stored.
type EdDSAPrivateKey ¶
type EdDSAPrivateKey struct {
ed25519.PrivateKey
}
For ECDSA private key type, there is only one algorithm to use. Therefore no 'Alg' is stored.
type JWKSet ¶
type JWKSet struct {
Keys []json.RawMessage `json:"keys"` // Store keys as raw JSON
}
type PrivateKey ¶
type PrivateKey interface {
// contains filtered or unexported methods
}
type RSAPrivateKey ¶
type RSAPrivateKey struct { *rsa.PrivateKey Alg types.String }
Alg is used for RSA signing algorithm. The choice of algorithm used for signing is only applicable to RSA key. The signing key can be of RS256, RS384 or RS512.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.