Documentation ¶
Index ¶
- type AuthenticationServiceClient
- type IdentityServiceClient
- func (c *IdentityServiceClient) IsKeyRegistered(id uuid.UUID, pubKey []byte) (bool, error)
- func (c *IdentityServiceClient) RequestKeyDeletion(uid uuid.UUID, cert []byte) error
- func (c *IdentityServiceClient) RequestPublicKeys(id uuid.UUID) ([]ubirch.SignedKeyRegistration, error)
- func (c *IdentityServiceClient) SubmitCSR(uid uuid.UUID, csr []byte) error
- func (c *IdentityServiceClient) SubmitKeyRegistration(uid uuid.UUID, cert []byte) error
- type UbirchServiceClient
- type VerificationServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationServiceClient ¶
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 ¶
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 UbirchServiceClient ¶
type UbirchServiceClient struct { IdentityServiceClient AuthenticationServiceClient VerificationServiceClient }
type VerificationServiceClient ¶
type VerificationServiceClient struct { VerifyServiceURL string VerifyServiceTimeout time.Duration }
func (*VerificationServiceClient) RequestHash ¶
func (c *VerificationServiceClient) RequestHash(hashBase64 string) (h.HTTPResponse, error)
Click to show internal directories.
Click to hide internal directories.