Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Register registers a new relying party. Register command // Authenticate authenticates a relying party with the associated identity, stored in the token. Authenticate // Version returns the standard "U2F_V2" version string. Version )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
Token represents a U2F token. It handles request parsing and composition, key storage orchestration.
func New ¶
New returns a new Token instance with k as Keyring. attCert must be a PEM-encoded certificate, while attPrivKey must be a X.509-encoded ECDSA private key.
func (*Token) HandleMessage ¶
HandleMessage handles a message, and returns a response byte slice.
Click to show internal directories.
Click to hide internal directories.