Documentation
¶
Index ¶
- Constants
- type ISecretkeeper
- type ISecretkeeperServer
- type SecretId
- type SecretkeeperProxy
- func (p *SecretkeeperProxy) AsBinder() binder.IBinder
- func (p *SecretkeeperProxy) DeleteAll(ctx context.Context) error
- func (p *SecretkeeperProxy) DeleteIds(ctx context.Context, ids []SecretId) error
- func (p *SecretkeeperProxy) GetAuthGraphKe(ctx context.Context) (authgraph.IAuthGraphKeyExchange, error)
- func (p *SecretkeeperProxy) ProcessSecretManagementRequest(ctx context.Context, request []byte) ([]byte, error)
- type SecretkeeperStub
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 SecretkeeperProxy ¶
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 (p *SecretkeeperProxy) GetAuthGraphKe( ctx context.Context, ) (authgraph.IAuthGraphKeyExchange, error)
func (*SecretkeeperProxy) ProcessSecretManagementRequest ¶
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)
Click to show internal directories.
Click to hide internal directories.