secure

package
v2.5.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWS

type JWS struct {
	// contains filtered or unexported fields
}

JWS Represents a JWS.

func NewJWS

func NewJWS(privateKey crypto.PrivateKey, kid string, nonceManager *nonces.Manager) *JWS

NewJWS Create a new JWS.

func (*JWS) GetKeyAuthorization

func (j *JWS) GetKeyAuthorization(token string) (string, error)

GetKeyAuthorization Gets the key authorization for a token.

func (*JWS) SetKid

func (j *JWS) SetKid(kid string)

SetKid Sets a key identifier.

func (*JWS) SignContent

func (j *JWS) SignContent(url string, content []byte) (*jose.JSONWebSignature, error)

SignContent Signs a content with the JWS.

func (*JWS) SignEABContent

func (j *JWS) SignEABContent(url, kid string, hmac []byte) (*jose.JSONWebSignature, error)

SignEABContent Signs an external account binding content with the JWS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL