Documentation ¶
Overview ¶
JWT 関係。
Index ¶
- func HashGenerator(alg string) crypto.Hash
- type Jwt
- func (this *Jwt) Claim(tag string) interface{}
- func (this *Jwt) ClaimNames() []string
- func (this *Jwt) Decrypt(keys []jwk.Key) (err error)
- func (this *Jwt) Encode() ([]byte, error)
- func (this *Jwt) Encrypt(keys []jwk.Key) error
- func (this *Jwt) Header(tag string) interface{}
- func (this *Jwt) IsEncrypted() bool
- func (this *Jwt) IsSigned() bool
- func (this *Jwt) RawBody() []byte
- func (this *Jwt) RawHeader() []byte
- func (this *Jwt) SetClaim(tag string, val interface{})
- func (this *Jwt) SetHeader(tag string, val interface{})
- func (this *Jwt) SetRawBody(raw []byte)
- func (this *Jwt) SetRawHeader(raw []byte)
- func (this *Jwt) Sign(keys []jwk.Key) error
- func (this *Jwt) Verify(keys []jwk.Key) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashGenerator ¶
Types ¶
type Jwt ¶
type Jwt struct {
// contains filtered or unexported fields
}
JSON Web Token
func (*Jwt) ClaimNames ¶
func (*Jwt) IsEncrypted ¶
func (*Jwt) SetRawBody ¶
func (*Jwt) SetRawHeader ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.