Documentation ¶
Overview ¶
Package ekmclient defines an HTTP client for contacting Confidential EKM services.
Index ¶
- type ConfidentialEKMClient
- func (c ConfidentialEKMClient) BeginSession(ctx context.Context, req *sspb.BeginSessionRequest) (*sspb.BeginSessionResponse, error)
- func (c ConfidentialEKMClient) ConfidentialUnwrap(ctx context.Context, req *cwpb.ConfidentialUnwrapRequest) (*cwpb.ConfidentialUnwrapResponse, error)
- func (c ConfidentialEKMClient) ConfidentialWrap(ctx context.Context, req *cwpb.ConfidentialWrapRequest) (*cwpb.ConfidentialWrapResponse, error)
- func (c ConfidentialEKMClient) EndSession(ctx context.Context, req *sspb.EndSessionRequest) (*sspb.EndSessionResponse, error)
- func (c ConfidentialEKMClient) Finalize(ctx context.Context, req *sspb.FinalizeRequest) (*sspb.FinalizeResponse, error)
- func (c ConfidentialEKMClient) GetJWTToken() string
- func (c ConfidentialEKMClient) Handshake(ctx context.Context, req *sspb.HandshakeRequest) (*sspb.HandshakeResponse, error)
- func (c ConfidentialEKMClient) NegotiateAttestation(ctx context.Context, req *sspb.NegotiateAttestationRequest) (*sspb.NegotiateAttestationResponse, error)
- func (c *ConfidentialEKMClient) SetJWTToken(token string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfidentialEKMClient ¶
ConfidentialEKMClient is an HTTP client that has methods for making requests to a server implementing the EKM UDE protocol.
func NewConfidentialEKMClient ¶
func NewConfidentialEKMClient(uri string) ConfidentialEKMClient
NewConfidentialEKMClient constructs a new ConfidentialEKMClient against the given URI.
func (ConfidentialEKMClient) BeginSession ¶
func (c ConfidentialEKMClient) BeginSession(ctx context.Context, req *sspb.BeginSessionRequest) (*sspb.BeginSessionResponse, error)
func (ConfidentialEKMClient) ConfidentialUnwrap ¶
func (c ConfidentialEKMClient) ConfidentialUnwrap(ctx context.Context, req *cwpb.ConfidentialUnwrapRequest) (*cwpb.ConfidentialUnwrapResponse, error)
func (ConfidentialEKMClient) ConfidentialWrap ¶
func (c ConfidentialEKMClient) ConfidentialWrap(ctx context.Context, req *cwpb.ConfidentialWrapRequest) (*cwpb.ConfidentialWrapResponse, error)
func (ConfidentialEKMClient) EndSession ¶
func (c ConfidentialEKMClient) EndSession(ctx context.Context, req *sspb.EndSessionRequest) (*sspb.EndSessionResponse, error)
func (ConfidentialEKMClient) Finalize ¶
func (c ConfidentialEKMClient) Finalize(ctx context.Context, req *sspb.FinalizeRequest) (*sspb.FinalizeResponse, error)
func (ConfidentialEKMClient) GetJWTToken ¶
func (c ConfidentialEKMClient) GetJWTToken() string
GetJWTToken gets the JWT associated with the client. Test-only method.
func (ConfidentialEKMClient) Handshake ¶
func (c ConfidentialEKMClient) Handshake(ctx context.Context, req *sspb.HandshakeRequest) (*sspb.HandshakeResponse, error)
func (ConfidentialEKMClient) NegotiateAttestation ¶
func (c ConfidentialEKMClient) NegotiateAttestation(ctx context.Context, req *sspb.NegotiateAttestationRequest) (*sspb.NegotiateAttestationResponse, error)
func (*ConfidentialEKMClient) SetJWTToken ¶
func (c *ConfidentialEKMClient) SetJWTToken(token string)
SetJWTToken sets the JWT associated with the client. Test-only method.
Click to show internal directories.
Click to hide internal directories.