Documentation
¶
Index ¶
- Constants
- func ExportPrivateKeyAsPemStr(sk crypto.Signer) string
- func GenerateFederationSigningKeyPair() (sk crypto.Signer, pk crypto.PublicKey, err error)
- func GenerateMytokenSigningKeyPair() (sk crypto.Signer, pk crypto.PublicKey, err error)
- func GenerateOIDCSigningKeyPair() (sk crypto.Signer, pk crypto.PublicKey, err error)
- func GetJWKS(usage KeyUsage) (jwks jwk.JWKS)
- func GetPublicKey(usage KeyUsage) (pk crypto.PublicKey)
- func GetSigningKey(usage KeyUsage) (sk crypto.Signer)
- func LoadFederationKey()
- func LoadMytokenSigningKey()
- func LoadOIDCSigningKey()
- type KeyUsage
Constants ¶
const ( KeyUsageMytokenSigning = KeyUsage("MT signing") KeyUsageFederation = KeyUsage("oidcfed") KeyUsageOIDCSigning = KeyUsage("oidc comm") )
Predefined KeyUsage strings
Variables ¶
This section is empty.
Functions ¶
func ExportPrivateKeyAsPemStr ¶
ExportPrivateKeyAsPemStr exports the private key
func GenerateFederationSigningKeyPair ¶ added in v0.10.0
GenerateFederationSigningKeyPair generates a cryptographic key pair for federation signing with the algorithm specified in the config.
func GenerateMytokenSigningKeyPair ¶ added in v0.10.0
GenerateMytokenSigningKeyPair generates a cryptographic key pair for mytoken signing with the algorithm specified in the mytoken config.
func GenerateOIDCSigningKeyPair ¶ added in v0.10.0
GenerateOIDCSigningKeyPair generates a cryptographic key pair for jwt signing within oidc communication with the algorithm specified in the mytoken config.
func GetPublicKey ¶
GetPublicKey returns the public key
func GetSigningKey ¶ added in v0.10.0
GetSigningKey returns the private key
func LoadFederationKey ¶ added in v0.10.0
func LoadFederationKey()
LoadFederationKey loads the private and public key for signing federation statements
func LoadMytokenSigningKey ¶ added in v0.10.0
func LoadMytokenSigningKey()
LoadMytokenSigningKey loads the private and public key for signing mytokens
func LoadOIDCSigningKey ¶ added in v0.10.0
func LoadOIDCSigningKey()
LoadOIDCSigningKey loads the private and public key for signing operations within oidc communcation