raw

package
v0.0.0-...-48b6be6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticatorGetAssertion

func AuthenticatorGetAssertion(hWnd uintptr,
	rpID *uint16,
	clientData *share.RawCollectedClientData,
	opts *share.RawAuthenticatorGetAssertionOptions) (assertion *share.Assertion, err error)

AuthenticatorGetAssertion produces an assertion signature representing an assertion by the authenticator that the user has consented to a specific transaction, such as logging in or completing a purchase.

func AuthenticatorMakeCredential

func AuthenticatorMakeCredential(hWnd uintptr,
	rpInfo *share.RawRPInfo,
	userInfo *share.RawUserInfo,
	pkCredParams *share.RawCOSECredentialParameters,
	clientData *share.RawCollectedClientData,
	options *share.RawAuthenticatorMakeCredentialOptions) (attestation *share.CredentialAttestation, err error)

AuthenticatorMakeCredential ...

func DeletePlatformCred

func DeletePlatformCred(cbCred uint32, pbCred *byte) error

DeletePlatformCred removes a Public Key Credential Source stored on a Virtual Authenticator.

func GetAPIVersionNumber

func GetAPIVersionNumber() uintptr

GetAPIVersionNumber returns supported webauthn version of the current system.

func GetErrorName

func GetErrorName(hr hresult.HResult) string

GetErrorName returns the following Error Names:

L"Success"              - S_OK
L"InvalidStateError"    - NTE_EXISTS
L"ConstraintError"      - HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED),
                          NTE_NOT_SUPPORTED,
                          NTE_TOKEN_KEYSET_STORAGE_FULL
L"NotSupportedError"    - NTE_INVALID_PARAMETER
L"NotAllowedError"      - NTE_DEVICE_NOT_FOUND,
                          NTE_NOT_FOUND,
                          HRESULT_FROM_WIN32(ERROR_CANCELLED),
                          NTE_USER_CANCELLED,
                          HRESULT_FROM_WIN32(ERROR_TIMEOUT)
L"UnknownError"         - All other hr values

func GetPlatformCredentialList

func GetPlatformCredentialList(options *share.RawGetCredentialsOptions) (credList []*share.CredentialDetails, err error)

GetPlatformCredentialList ...

func IsUserVerifyingPlatformAuthenticatorAvailable

func IsUserVerifyingPlatformAuthenticatorAvailable() (is bool)

IsUserVerifyingPlatformAuthenticatorAvailable checks if the device owns platform authenticators.

Types

This section is empty.

Jump to

Keyboard shortcuts

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