Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSigPublicKey ¶ added in v0.1.2
func DecodeSigPublicKey(data []byte, kid string, algo jose.SignatureAlgorithm) ([]jose.JSONWebKey, error)
DecodeSigPublicKey decodes the plain public key into JWKs used for sigining. https://github.com/square/go-jose/blob/v2.4.1/jose-util/utils.go#L42
Types ¶
type ALBFetcher ¶ added in v0.1.2
ALBFetcher fetchs a public key from AWS's Application Load Balancer and decodes it into JWK.
type Cacher ¶
type Cacher struct {
// contains filtered or unexported fields
}
Cacher fetches JWKs via Cache if available.
type Fetcher ¶
type Fetcher interface { // FetchJWKs retrieves JWKSet from path. FetchJWKs(path string) (*Response, error) }
Fetcher is an interface that represents JWKs fetcher.
type HTTPFetcher ¶
HTTPFetcher fetches JWKs over HTTP.
type InMemoryFetcher ¶ added in v0.1.1
type InMemoryFetcher struct {
RAWJWKs []byte
}
InMemoryFetcher fetches JWKs from its memory.
type Response ¶ added in v0.1.1
type Response struct { Keys []jose.JSONWebKey TTL time.Duration // This would be used as TTL for caching. }
Response represents a response of JWK Set. This contains a TTL (Time to Live) for caching purpose.
Click to show internal directories.
Click to hide internal directories.