credentials

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package credentials provides Go bindings for androidx.credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

func NewgetCredentialRequestBuilder added in v0.0.5

func NewgetCredentialRequestBuilder(vm *jni.VM) (*getCredentialRequestBuilder, error)

NewgetCredentialRequestBuilder creates a new androidx.credentials.GetCredentialRequest$Builder instance.

Types

type Manager

type Manager struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Manager wraps androidx.credentials.CredentialManager.

type PasswordCredential

type PasswordCredential struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

PasswordCredential wraps androidx.credentials.PasswordCredential.

func (*PasswordCredential) ID

func (m *PasswordCredential) ID() (string, error)

ID calls androidx.credentials.PasswordCredential.getId.

func (*PasswordCredential) Password

func (m *PasswordCredential) Password() (string, error)

Password calls androidx.credentials.PasswordCredential.getPassword.

type PublicKeyCredential

type PublicKeyCredential struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

PublicKeyCredential wraps androidx.credentials.PublicKeyCredential.

func (*PublicKeyCredential) AuthResponseJSON

func (m *PublicKeyCredential) AuthResponseJSON() (string, error)

AuthResponseJSON calls androidx.credentials.PublicKeyCredential.getAuthenticationResponseJson.

Jump to

Keyboard shortcuts

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