authsecret

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DescriptorIAuthSecret = "android.hardware.authsecret.IAuthSecret"
View Source
const (
	MethodIAuthSecretSetPrimaryUserCredential = "setPrimaryUserCredential"
)
View Source
const (
	TransactionIAuthSecretSetPrimaryUserCredential = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSecretProxy

type AuthSecretProxy struct {
	Remote binder.IBinder
}

func NewAuthSecretProxy

func NewAuthSecretProxy(
	remote binder.IBinder,
) *AuthSecretProxy

func (*AuthSecretProxy) AsBinder

func (p *AuthSecretProxy) AsBinder() binder.IBinder

func (*AuthSecretProxy) SetPrimaryUserCredential

func (p *AuthSecretProxy) SetPrimaryUserCredential(
	ctx context.Context,
	secret []byte,
) error

type AuthSecretStub

type AuthSecretStub struct {
	Impl      IAuthSecret
	Transport binder.VersionAwareTransport
}

AuthSecretStub dispatches incoming binder transactions to a typed IAuthSecret implementation.

func (*AuthSecretStub) Descriptor

func (s *AuthSecretStub) Descriptor() string

func (*AuthSecretStub) OnTransaction

func (s *AuthSecretStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type IAuthSecret

type IAuthSecret interface {
	AsBinder() binder.IBinder
	SetPrimaryUserCredential(ctx context.Context, secret []byte) error
}

func NewAuthSecretStub

func NewAuthSecretStub(
	impl IAuthSecretServer,
) IAuthSecret

NewAuthSecretStub creates a server-side IAuthSecret wrapping the given server implementation. The returned value satisfies IAuthSecret and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IAuthSecretServer

type IAuthSecretServer interface {
	SetPrimaryUserCredential(ctx context.Context, secret []byte) error
}

IAuthSecretServer is the server-side interface that user implementations provide to NewAuthSecretStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

Jump to

Keyboard shortcuts

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