Documentation ¶
Index ¶
- func Generate(opt KeyGeneratorOptions) ([]byte, []byte, error)
- func Thumbprint(opt ThumbprintOptions) (string, error)
- func WrapParseFileIntoJWKs(ctx context.Context, fileName string) ([]jwk.Key, error)
- type ECGenerator
- type KeyGenerator
- type KeyGeneratorOptions
- type KeyThumbprint
- type KeyType
- type KeyUsage
- type OKPGenerator
- type OptionForEachComponent
- type RSAGenerator
- type ThumbprintOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Thumbprint ¶
func Thumbprint(opt ThumbprintOptions) (string, error)
Types ¶
type ECGenerator ¶
type ECGenerator struct {
CurveName string
}
func (ECGenerator) GenerateKey ¶
func (g ECGenerator) GenerateKey() (interface{}, error)
type KeyGenerator ¶
type KeyGenerator interface {
GenerateKey() (interface{}, error)
}
type KeyGeneratorOptions ¶
type KeyGeneratorOptions struct { Generator KeyGenerator GeneratePublicComponent bool WrapInJwks OptionForEachComponent Usage KeyUsage IDMethod string IDThumbprintMethod KeyThumbprint }
type KeyThumbprint ¶
type KeyThumbprint int
const ( KeyThumbprintSHA256 KeyThumbprint = iota KeyThumbprintSHA512 )
type OKPGenerator ¶
type OKPGenerator struct { }
func (OKPGenerator) GenerateKey ¶
func (g OKPGenerator) GenerateKey() (interface{}, error)
type OptionForEachComponent ¶
type RSAGenerator ¶
type RSAGenerator struct {
Bits int
}
func (RSAGenerator) GenerateKey ¶
func (g RSAGenerator) GenerateKey() (interface{}, error)
type ThumbprintOptions ¶
type ThumbprintOptions struct { InputFile string Method KeyThumbprint }
Click to show internal directories.
Click to hide internal directories.