s2a_context_go_proto

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_proto_s2a_context_s2a_context_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type S2AContext

type S2AContext struct {

	// The application protocol negotiated for this connection, e.g., 'grpc'.
	ApplicationProtocol string `protobuf:"bytes,1,opt,name=application_protocol,json=applicationProtocol,proto3" json:"application_protocol,omitempty"`
	// The TLS version number that the S2A's handshaker module used to set up the
	// session.
	TlsVersion common_go_proto.TLSVersion `protobuf:"varint,2,opt,name=tls_version,json=tlsVersion,proto3,enum=s2a.proto.TLSVersion" json:"tls_version,omitempty"`
	// The TLS ciphersuite negotiated by the S2A's handshaker module.
	Ciphersuite common_go_proto.Ciphersuite `protobuf:"varint,3,opt,name=ciphersuite,proto3,enum=s2a.proto.Ciphersuite" json:"ciphersuite,omitempty"`
	// The authenticated identity of the peer.
	PeerIdentity *common_go_proto.Identity `protobuf:"bytes,4,opt,name=peer_identity,json=peerIdentity,proto3" json:"peer_identity,omitempty"`
	// The local identity used during session setup. This could be:
	//   - The local identity that the client specifies in ClientSessionStartReq.
	//   - One of the local identities that the server specifies in
	//     ServerSessionStartReq.
	//   - If neither client or server specifies local identities, the S2A picks the
	//     default one. In this case, this field will contain that identity.
	LocalIdentity *common_go_proto.Identity `protobuf:"bytes,5,opt,name=local_identity,json=localIdentity,proto3" json:"local_identity,omitempty"`
	// The SHA256 hash of the peer certificate used in the handshake.
	PeerCertFingerprint []byte `protobuf:"bytes,6,opt,name=peer_cert_fingerprint,json=peerCertFingerprint,proto3" json:"peer_cert_fingerprint,omitempty"`
	// The SHA256 hash of the local certificate used in the handshake.
	LocalCertFingerprint []byte `protobuf:"bytes,7,opt,name=local_cert_fingerprint,json=localCertFingerprint,proto3" json:"local_cert_fingerprint,omitempty"`
	// Set to true if a cached session was reused to resume the handshake.
	IsHandshakeResumed bool `protobuf:"varint,8,opt,name=is_handshake_resumed,json=isHandshakeResumed,proto3" json:"is_handshake_resumed,omitempty"`
	// contains filtered or unexported fields
}

func (*S2AContext) Descriptor deprecated

func (*S2AContext) Descriptor() ([]byte, []int)

Deprecated: Use S2AContext.ProtoReflect.Descriptor instead.

func (*S2AContext) GetApplicationProtocol

func (x *S2AContext) GetApplicationProtocol() string

func (*S2AContext) GetCiphersuite

func (x *S2AContext) GetCiphersuite() common_go_proto.Ciphersuite

func (*S2AContext) GetIsHandshakeResumed

func (x *S2AContext) GetIsHandshakeResumed() bool

func (*S2AContext) GetLocalCertFingerprint

func (x *S2AContext) GetLocalCertFingerprint() []byte

func (*S2AContext) GetLocalIdentity

func (x *S2AContext) GetLocalIdentity() *common_go_proto.Identity

func (*S2AContext) GetPeerCertFingerprint

func (x *S2AContext) GetPeerCertFingerprint() []byte

func (*S2AContext) GetPeerIdentity

func (x *S2AContext) GetPeerIdentity() *common_go_proto.Identity

func (*S2AContext) GetTlsVersion

func (x *S2AContext) GetTlsVersion() common_go_proto.TLSVersion

func (*S2AContext) ProtoMessage

func (*S2AContext) ProtoMessage()

func (*S2AContext) ProtoReflect

func (x *S2AContext) ProtoReflect() protoreflect.Message

func (*S2AContext) Reset

func (x *S2AContext) Reset()

func (*S2AContext) String

func (x *S2AContext) String() string

Jump to

Keyboard shortcuts

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