fxa

package
v0.0.0-...-590590f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MPL-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHawkCredentials

func NewHawkCredentials(id string, key []byte) hawkCredentials

Types

type Client

type Client struct {
	KeyA []byte
	KeyB []byte
	// contains filtered or unexported fields
}

Structure that maintains the state of a Firefox Accounts Client.

func NewClient

func NewClient(email, password string) (*Client, error)

Create a new client with the specified email and password.

func (*Client) FetchKeys

func (c *Client) FetchKeys() error

Fetch encryption keys from the Firefox Accounts service.

func (*Client) Login

func (c *Client) Login() error

Login to the Firefox Accounts service.

func (*Client) SignCertificate

func (c *Client) SignCertificate(key *dsa.PrivateKey) (string, error)

Sign a certificate with the given DSA key. Returns an encoded certificate.

func (*Client) String

func (c *Client) String() string

type ErrorResponse

type ErrorResponse struct {
	Code    int    `json:"code"`
	Errno   int    `json:"errno"`
	Err     string `json:"error"`
	Message string `json:"message"`
	Info    string `json:"info"`
}

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

Jump to

Keyboard shortcuts

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