Documentation ¶
Index ¶
- Constants
- type Inspect
- func (i *Inspect) ApplyMiddleware(h http.Handler) http.Handler
- func (i *Inspect) Authorize(w http.ResponseWriter, r *http.Request) (authorized bool, modified *http.Request)
- func (i *Inspect) ContentType() (request, response string)
- func (i *Inspect) HTTPMethod() string
- func (i *Inspect) Initialize(s server.Server) error
- func (i *Inspect) Respond(r *http.Request) (code int, body []byte, err error)
- func (i *Inspect) URLPattern() string
- type InspectReq
- type InspectResp
- type NewGen
- func (n *NewGen) ApplyMiddleware(h http.Handler) http.Handler
- func (n *NewGen) Authorize(w http.ResponseWriter, r *http.Request) (authorized bool, modified *http.Request)
- func (n *NewGen) ContentType() (request, response string)
- func (n *NewGen) HTTPMethod() string
- func (n *NewGen) Initialize(s server.Server) error
- func (n *NewGen) Respond(r *http.Request) (code int, body []byte, err error)
- func (n *NewGen) URLPattern() string
- type NewGenReqData
- type NewGenRespData
- type PemGen
- func (p *PemGen) ApplyMiddleware(h http.Handler) http.Handler
- func (p *PemGen) Authorize(w http.ResponseWriter, r *http.Request) (authorized bool, modified *http.Request)
- func (p *PemGen) ContentType() (request, response string)
- func (p *PemGen) HTTPMethod() string
- func (p *PemGen) Initialize(s server.Server) error
- func (p *PemGen) Respond(r *http.Request) (code int, body []byte, err error)
- func (p *PemGen) URLPattern() string
- type PemGenReqData
- type PemGenRespData
Constants ¶
View Source
const ( KeyTypeRSA keyType = "RSA" KeyTypeECDSA keyType = "ECDSA" KeyTypeEd25519 keyType = "Ed25519" KeyTypeX25519 keyType = "X25519" KeyTypeSymmetric keyType = "Symmetric" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inspect ¶
type Inspect struct {
// contains filtered or unexported fields
}
func (*Inspect) ContentType ¶
func (*Inspect) HTTPMethod ¶
func (*Inspect) URLPattern ¶
type InspectReq ¶
type InspectReq struct {
JWK string `json:"jwk"`
}
func (InspectReq) DefaultsAndValidate ¶
func (i InspectReq) DefaultsAndValidate() (InspectReq, error)
type InspectResp ¶
type NewGen ¶
type NewGen struct {
// contains filtered or unexported fields
}
func (*NewGen) ContentType ¶
func (*NewGen) HTTPMethod ¶
func (*NewGen) URLPattern ¶
type NewGenReqData ¶
type NewGenReqData struct { ALG jwkset.ALG `json:"alg"` KEYOPS []jwkset.KEYOPS `json:"keyops"` KeyType keyType `json:"keyType"` KID string `json:"kid"` USE jwkset.USE `json:"use"` RSABits int `json:"rsaBits"` ECCurve jwkset.CRV `json:"ecCurve"` }
func (NewGenReqData) DefaultsAndValidate ¶
func (n NewGenReqData) DefaultsAndValidate() (NewGenReqData, error)
type NewGenRespData ¶
type PemGen ¶
type PemGen struct {
// contains filtered or unexported fields
}
func (*PemGen) ContentType ¶
func (*PemGen) HTTPMethod ¶
func (*PemGen) URLPattern ¶
type PemGenReqData ¶
type PemGenReqData struct { ALG jwkset.ALG `json:"alg"` KEYOPS []jwkset.KEYOPS `json:"keyops"` KID string `json:"kid"` PEM string `json:"pem"` USE jwkset.USE `json:"use"` }
func (PemGenReqData) DefaultsAndValidate ¶
func (p PemGenReqData) DefaultsAndValidate() (PemGenReqData, error)
type PemGenRespData ¶
type PemGenRespData struct {
JWK string `json:"jwk"`
}
Click to show internal directories.
Click to hide internal directories.