Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateJwk() (*jose.JSONWebKey, error)
- func GenerateJwt(signer jose.Signer, claims interface{}) (string, error)
- func GenerateRSAKey() (*rsa.PrivateKey, error)
- func GetPreviousJwkFromSecret(managedSecrets *kubernetes.SecretLists, secretKey string) (*jose.JSONWebKey, error)
- func MergeJwks(jwk jose.JSONWebKey, secretsInUse v1.SecretList, secretKey string) (*jose.JSONWebKeySet, error)
- type DigdirJwk
- type DigdirJwkSet
Constants ¶
View Source
const ( KeyUseSignature string = "sig" KeyAlgorithm string = "RS256" )
Variables ¶
View Source
var ErrNoPreviousJwkFound = fmt.Errorf("no previous JWK found in secrets")
Functions ¶
func GenerateJwk ¶
func GenerateJwk() (*jose.JSONWebKey, error)
func GenerateJwt ¶
func GenerateRSAKey ¶
func GenerateRSAKey() (*rsa.PrivateKey, error)
func GetPreviousJwkFromSecret ¶
func GetPreviousJwkFromSecret(managedSecrets *kubernetes.SecretLists, secretKey string) (*jose.JSONWebKey, error)
Types ¶
type DigdirJwk ¶
func (DigdirJwk) ExpiryTime ¶
type DigdirJwkSet ¶
type DigdirJwkSet struct {
Keys []DigdirJwk `json:"keys"`
}
func (DigdirJwkSet) KeyIDs ¶
func (d DigdirJwkSet) KeyIDs() []string
Click to show internal directories.
Click to hide internal directories.