metadata

package
v0.0.0-...-e4b8fe1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MDS3URL = "https://mds3.fidoalliance.org/"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatorGetInfo

type AuthenticatorGetInfo struct {
	PinUvAuthProtocols []float64 `json:"pinUvAuthProtocols"`
	Versions           []string  `json:"versions"`
	Extensions         []string  `json:"extensions"`
	Aaguid             uuid.UUID `json:"aaguid"`
	Options            Options   `json:"options"`
	MaxMsgSize         float64   `json:"maxMsgSize"`
}

type CaDesc

type CaDesc struct {
	MinLength     float64 `json:"minLength"`
	MaxRetries    float64 `json:"maxRetries"`
	BlockSlowdown float64 `json:"blockSlowdown"`
	Base          float64 `json:"base"`
}

type Entries

type Entries struct {
	Aaguid                 uuid.UUID         `json:"aaguid"`
	MetadataStatement      MetadataStatement `json:"metadataStatement"`
	StatusReports          []StatusReports   `json:"statusReports"`
	TimeOfLastStatusChange string            `json:"timeOfLastStatusChange"`
}

type MetadataStatement

type MetadataStatement struct {
	CryptoStrength              float64                     `json:"cryptoStrength"`
	AttachmentHint              []string                    `json:"attachmentHint"`
	AttestationRootCertificates []string                    `json:"attestationRootCertificates"`
	Description                 string                      `json:"description"`
	Schema                      float64                     `json:"schema"`
	UserVerificationDetails     [][]UserVerificationDetails `json:"userVerificationDetails"`
	MatcherProtection           []string                    `json:"matcherProtection"`
	AuthenticatorVersion        float64                     `json:"authenticatorVersion"`
	AuthenticationAlgorithms    []string                    `json:"authenticationAlgorithms"`
	TcDisplay                   []string                    `json:"tcDisplay"`
	Icon                        string                      `json:"icon"`
	AuthenticatorGetInfo        AuthenticatorGetInfo        `json:"authenticatorGetInfo"`
	LegalHeader                 string                      `json:"legalHeader"`
	Aaguid                      uuid.UUID                   `json:"aaguid"`
	Upv                         []Upv                       `json:"upv"`
	KeyProtection               []string                    `json:"keyProtection"`
	ProtocolFamily              string                      `json:"protocolFamily"`
	PublicKeyAlgAndEncodings    []string                    `json:"publicKeyAlgAndEncodings"`
	AttestationTypes            []string                    `json:"attestationTypes"`
	TcDisplayContentType        string                      `json:"tcDisplayContentType"`
}

type Options

type Options struct {
	Rk        bool `json:"rk"`
	ClientPin bool `json:"clientPin"`
	Up        bool `json:"up"`
	Uv        bool `json:"uv"`
}

type Root

type Root struct {
	NextUpdate  string    `json:"nextUpdate"`
	Entries     []Entries `json:"entries"`
	LegalHeader string    `json:"legalHeader"`
	No          float64   `json:"no"`
}

func DownloadFIDO2MetaData

func DownloadFIDO2MetaData(c *http.Client) (*Root, error)

type StatusReports

type StatusReports struct {
	Status        string `json:"status"`
	EffectiveDate string `json:"effectiveDate"`
}

type Upv

type Upv struct {
	Minor float64 `json:"minor"`
	Major float64 `json:"major"`
}

type UserVerificationDetails

type UserVerificationDetails struct {
	UserVerificationMethod string `json:"userVerificationMethod"`
	CaDesc                 CaDesc `json:"caDesc"`
}

Jump to

Keyboard shortcuts

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