Back to godoc.org
github.com/gowebapi/webapi/crypto/authentication

package authentication

v0.0.0 (f312d10)
Latest Go to latest
Published: Feb 8, 2020 | License: BSD-3-Clause | Module: github.com/gowebapi/webapi

Overview

Package authentication enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.

Index

type AssertionResponse

type AssertionResponse struct {
	Response
}

class: AuthenticatorAssertionResponse

func AssertionResponseFromJS

func AssertionResponseFromJS(value js.Wrapper) *AssertionResponse

AssertionResponseFromJS is casting a js.Wrapper into AssertionResponse.

func (*AssertionResponse) AuthenticatorData

func (_this *AssertionResponse) AuthenticatorData() *javascript.ArrayBuffer

AuthenticatorData returning attribute 'authenticatorData' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*AssertionResponse) Signature

func (_this *AssertionResponse) Signature() *javascript.ArrayBuffer

Signature returning attribute 'signature' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*AssertionResponse) UserHandle

func (_this *AssertionResponse) UserHandle() *javascript.ArrayBuffer

UserHandle returning attribute 'userHandle' with type javascript.ArrayBuffer (idl: ArrayBuffer).

type Attachment

type Attachment int

enum: AuthenticatorAttachment

const (
	Platform Attachment = iota
	CrossPlatform
)

func AttachmentFromJS

func AttachmentFromJS(value js.Value) Attachment

AttachmentFromJS is converting a javascript value into a Attachment enum value.

func (*Attachment) JSValue

func (this *Attachment) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (Attachment) Value

func (this Attachment) Value() string

Value is converting this into javascript defined string value

type AttestationConveyancePreference

type AttestationConveyancePreference int

enum: AttestationConveyancePreference

const (
	None AttestationConveyancePreference = iota
	Indirect
	Direct
)

func AttestationConveyancePreferenceFromJS

func AttestationConveyancePreferenceFromJS(value js.Value) AttestationConveyancePreference

AttestationConveyancePreferenceFromJS is converting a javascript value into a AttestationConveyancePreference enum value.

func (*AttestationConveyancePreference) JSValue

func (this *AttestationConveyancePreference) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AttestationConveyancePreference) Value

func (this AttestationConveyancePreference) Value() string

Value is converting this into javascript defined string value

type AttestationResponse

type AttestationResponse struct {
	Response
}

class: AuthenticatorAttestationResponse

func AttestationResponseFromJS

func AttestationResponseFromJS(value js.Wrapper) *AttestationResponse

AttestationResponseFromJS is casting a js.Wrapper into AttestationResponse.

func (*AttestationResponse) AttestationObject

func (_this *AttestationResponse) AttestationObject() *javascript.ArrayBuffer

AttestationObject returning attribute 'attestationObject' with type javascript.ArrayBuffer (idl: ArrayBuffer).

type AuthenticationExtensionsClientInputs

type AuthenticationExtensionsClientInputs struct {
	Appid         string
	TxAuthSimple  string
	TxAuthGeneric *TxAuthGenericArg
	AuthnSel      []*Union
	Exts          bool
	Uvi           bool
	Loc           bool
	Uvm           bool
}

dictionary: AuthenticationExtensionsClientInputs

func AuthenticationExtensionsClientInputsFromJS

func AuthenticationExtensionsClientInputsFromJS(value js.Wrapper) *AuthenticationExtensionsClientInputs

AuthenticationExtensionsClientInputsFromJS is allocating a new AuthenticationExtensionsClientInputs object and copy all values from input javascript object

func (*AuthenticationExtensionsClientInputs) JSValue

func (_this *AuthenticationExtensionsClientInputs) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AuthenticationExtensionsClientOutputs

type AuthenticationExtensionsClientOutputs struct {
	Appid         bool
	TxAuthSimple  string
	TxAuthGeneric *javascript.ArrayBuffer
	AuthnSel      bool
	Exts          []string
	Uvi           *javascript.ArrayBuffer
	Loc           *sensor.Coordinates
	Uvm           [][]uint
}

dictionary: AuthenticationExtensionsClientOutputs

func AuthenticationExtensionsClientOutputsFromJS

func AuthenticationExtensionsClientOutputsFromJS(value js.Wrapper) *AuthenticationExtensionsClientOutputs

AuthenticationExtensionsClientOutputsFromJS is allocating a new AuthenticationExtensionsClientOutputs object and copy all values from input javascript object

func (*AuthenticationExtensionsClientOutputs) JSValue

func (_this *AuthenticationExtensionsClientOutputs) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type AuthenticatorBiometricPerfBounds

type AuthenticatorBiometricPerfBounds struct {
	FAR float32
	FRR float32
}

dictionary: authenticatorBiometricPerfBounds

func AuthenticatorBiometricPerfBoundsFromJS

func AuthenticatorBiometricPerfBoundsFromJS(value js.Wrapper) *AuthenticatorBiometricPerfBounds

AuthenticatorBiometricPerfBoundsFromJS is allocating a new AuthenticatorBiometricPerfBounds object and copy all values from input javascript object

func (*AuthenticatorBiometricPerfBounds) JSValue

func (_this *AuthenticatorBiometricPerfBounds) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type CollectedClientData

type CollectedClientData struct {
	Type         string
	Challenge    string
	Origin       string
	TokenBinding *TokenBinding
}

dictionary: CollectedClientData

func CollectedClientDataFromJS

func CollectedClientDataFromJS(value js.Wrapper) *CollectedClientData

CollectedClientDataFromJS is allocating a new CollectedClientData object and copy all values from input javascript object

func (*CollectedClientData) JSValue

func (_this *CollectedClientData) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Response

type Response struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: AuthenticatorResponse

func ResponseFromJS

func ResponseFromJS(value js.Wrapper) *Response

ResponseFromJS is casting a js.Wrapper into Response.

func (*Response) ClientDataJSON

func (_this *Response) ClientDataJSON() *javascript.ArrayBuffer

ClientDataJSON returning attribute 'clientDataJSON' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*Response) JSValue

func (_this *Response) JSValue() js.Value

type SelectionCriteria

type SelectionCriteria struct {
	AuthenticatorAttachment Attachment
	RequireResidentKey      bool
	UserVerification        UserVerificationRequirement
}

dictionary: AuthenticatorSelectionCriteria

func SelectionCriteriaFromJS

func SelectionCriteriaFromJS(value js.Wrapper) *SelectionCriteria

SelectionCriteriaFromJS is allocating a new SelectionCriteria object and copy all values from input javascript object

func (*SelectionCriteria) JSValue

func (_this *SelectionCriteria) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type TokenBinding

type TokenBinding struct {
	Status TokenBindingStatus
	Id     string
}

dictionary: TokenBinding

func TokenBindingFromJS

func TokenBindingFromJS(value js.Wrapper) *TokenBinding

TokenBindingFromJS is allocating a new TokenBinding object and copy all values from input javascript object

func (*TokenBinding) JSValue

func (_this *TokenBinding) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type TokenBindingStatus

type TokenBindingStatus int

enum: TokenBindingStatus

const (
	PresentTokenBindingStatus TokenBindingStatus = iota
	SupportedTokenBindingStatus
)

func TokenBindingStatusFromJS

func TokenBindingStatusFromJS(value js.Value) TokenBindingStatus

TokenBindingStatusFromJS is converting a javascript value into a TokenBindingStatus enum value.

func (*TokenBindingStatus) JSValue

func (this *TokenBindingStatus) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (TokenBindingStatus) Value

func (this TokenBindingStatus) Value() string

Value is converting this into javascript defined string value

type Transport

type Transport int

enum: AuthenticatorTransport

const (
	TransportUsb Transport = iota
	TransportNfc
	TransportBle
	TransportInternal
)

func TransportFromJS

func TransportFromJS(value js.Value) Transport

TransportFromJS is converting a javascript value into a Transport enum value.

func (*Transport) JSValue

func (this *Transport) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (Transport) Value

func (this Transport) Value() string

Value is converting this into javascript defined string value

type TxAuthGenericArg

type TxAuthGenericArg struct {
	ContentType string
	Content     *javascript.ArrayBuffer
}

dictionary: txAuthGenericArg

func TxAuthGenericArgFromJS

func TxAuthGenericArgFromJS(value js.Wrapper) *TxAuthGenericArg

TxAuthGenericArgFromJS is allocating a new TxAuthGenericArg object and copy all values from input javascript object

func (*TxAuthGenericArg) JSValue

func (_this *TxAuthGenericArg) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

type UserVerificationRequirement

type UserVerificationRequirement int

enum: UserVerificationRequirement

const (
	Required UserVerificationRequirement = iota
	Preferred
	Discouraged
)

func UserVerificationRequirementFromJS

func UserVerificationRequirementFromJS(value js.Value) UserVerificationRequirement

UserVerificationRequirementFromJS is converting a javascript value into a UserVerificationRequirement enum value.

func (*UserVerificationRequirement) JSValue

func (this *UserVerificationRequirement) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (UserVerificationRequirement) Value

func (this UserVerificationRequirement) Value() string

Value is converting this into javascript defined string value

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier