clients

package
v0.0.0-...-8bc3ba8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationServiceClient

type AuthenticationServiceClient struct {
	AuthServiceURL     string
	AuthServiceTimeout time.Duration
}

func (*AuthenticationServiceClient) SendToAuthService

func (c *AuthenticationServiceClient) SendToAuthService(uid uuid.UUID, auth string, upp []byte) (h.HTTPResponse, error)

type IdentityServiceClient

type IdentityServiceClient struct {
	KeyServiceURL          string
	IdentityServiceURL     string
	IdentityServiceTimeout time.Duration
}

func (*IdentityServiceClient) IsKeyRegistered

func (c *IdentityServiceClient) IsKeyRegistered(id uuid.UUID, pubKey []byte) (bool, error)

IsKeyRegistered sends a request to the identity service to determine if a specified public key is registered for the specified UUID

func (*IdentityServiceClient) RequestKeyDeletion

func (c *IdentityServiceClient) RequestKeyDeletion(uid uuid.UUID, cert []byte) error

func (*IdentityServiceClient) RequestPublicKeys

func (c *IdentityServiceClient) RequestPublicKeys(id uuid.UUID) ([]ubirch.SignedKeyRegistration, error)

RequestPublicKeys requests a devices public keys at the identity service returns a list of the retrieved public key certificates

func (*IdentityServiceClient) SubmitCSR

func (c *IdentityServiceClient) SubmitCSR(uid uuid.UUID, csr []byte) error

SubmitCSR submits an X.509 Certificate Signing Request for the public key to the identity service

func (*IdentityServiceClient) SubmitKeyRegistration

func (c *IdentityServiceClient) SubmitKeyRegistration(uid uuid.UUID, cert []byte) error

type VerificationServiceClient

type VerificationServiceClient struct {
	VerifyServiceURL     string
	VerifyServiceTimeout time.Duration
}

func (*VerificationServiceClient) RequestHash

func (c *VerificationServiceClient) RequestHash(hashBase64 string) (h.HTTPResponse, error)

Jump to

Keyboard shortcuts

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