secretkeeper

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionISecretkeeperGetAuthGraphKe                 = binder.FirstCallTransaction + 0
	TransactionISecretkeeperProcessSecretManagementRequest = binder.FirstCallTransaction + 1
	TransactionISecretkeeperDeleteIds                      = binder.FirstCallTransaction + 2
	TransactionISecretkeeperDeleteAll                      = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodISecretkeeperGetAuthGraphKe                 = "getAuthGraphKe"
	MethodISecretkeeperProcessSecretManagementRequest = "processSecretManagementRequest"
	MethodISecretkeeperDeleteIds                      = "deleteIds"
	MethodISecretkeeperDeleteAll                      = "deleteAll"
)
View Source
const (
	ISecretkeeperErrorUnknownKeyId     int32 = 1
	ISecretkeeperErrorInternalError    int32 = 2
	ISecretkeeperErrorRequestMalformed int32 = 3
)
View Source
const DescriptorISecretkeeper = "android.hardware.security.secretkeeper.ISecretkeeper"

Variables

This section is empty.

Functions

This section is empty.

Types

type ISecretkeeper

type ISecretkeeper interface {
	AsBinder() binder.IBinder
	GetAuthGraphKe(ctx context.Context) (authgraph.IAuthGraphKeyExchange, error)
	ProcessSecretManagementRequest(ctx context.Context, request []byte) ([]byte, error)
	DeleteIds(ctx context.Context, ids []SecretId) error
	DeleteAll(ctx context.Context) error
}

func NewSecretkeeperStub

func NewSecretkeeperStub(
	impl ISecretkeeperServer,
) ISecretkeeper

NewSecretkeeperStub creates a server-side ISecretkeeper wrapping the given server implementation. The returned value satisfies ISecretkeeper 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 ISecretkeeperServer

type ISecretkeeperServer interface {
	GetAuthGraphKe(ctx context.Context) (authgraph.IAuthGraphKeyExchange, error)
	ProcessSecretManagementRequest(ctx context.Context, request []byte) ([]byte, error)
	DeleteIds(ctx context.Context, ids []SecretId) error
	DeleteAll(ctx context.Context) error
}

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

type SecretId

type SecretId struct {
	Id []byte
}

func (*SecretId) MarshalParcel

func (s *SecretId) MarshalParcel(
	p *parcel.Parcel,
) error

func (*SecretId) UnmarshalParcel

func (s *SecretId) UnmarshalParcel(
	p *parcel.Parcel,
) error

type SecretkeeperProxy

type SecretkeeperProxy struct {
	Remote binder.IBinder
}

func NewSecretkeeperProxy

func NewSecretkeeperProxy(
	remote binder.IBinder,
) *SecretkeeperProxy

func (*SecretkeeperProxy) AsBinder

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

func (*SecretkeeperProxy) DeleteAll

func (p *SecretkeeperProxy) DeleteAll(
	ctx context.Context,
) error

func (*SecretkeeperProxy) DeleteIds

func (p *SecretkeeperProxy) DeleteIds(
	ctx context.Context,
	ids []SecretId,
) error

func (*SecretkeeperProxy) GetAuthGraphKe

func (*SecretkeeperProxy) ProcessSecretManagementRequest

func (p *SecretkeeperProxy) ProcessSecretManagementRequest(
	ctx context.Context,
	request []byte,
) ([]byte, error)

type SecretkeeperStub

type SecretkeeperStub struct {
	Impl      ISecretkeeper
	Transport binder.VersionAwareTransport
}

SecretkeeperStub dispatches incoming binder transactions to a typed ISecretkeeper implementation.

func (*SecretkeeperStub) Descriptor

func (s *SecretkeeperStub) Descriptor() string

func (*SecretkeeperStub) OnTransaction

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

Jump to

Keyboard shortcuts

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