Documentation ¶
Overview ¶
Package atlscredentials handles creation of TLS credentials for attested TLS (ATLS).
Index ¶
- type Credentials
- func (c *Credentials) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)
- func (c *Credentials) Clone() credentials.TransportCredentials
- func (c *Credentials) Info() credentials.ProtocolInfo
- func (c *Credentials) OverrideServerName(_ string) error
- func (c *Credentials) ServerHandshake(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct {
// contains filtered or unexported fields
}
Credentials for attested TLS (ATLS).
func New ¶
func New(issuer atls.Issuer, validators []atls.Validator) *Credentials
New creates new ATLS Credentials.
func (*Credentials) ClientHandshake ¶
func (c *Credentials) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)
ClientHandshake performs the client handshake.
func (*Credentials) Clone ¶
func (c *Credentials) Clone() credentials.TransportCredentials
Clone the credentials object.
func (*Credentials) Info ¶
func (c *Credentials) Info() credentials.ProtocolInfo
Info provides information about the protocol.
func (*Credentials) OverrideServerName ¶
func (c *Credentials) OverrideServerName(_ string) error
OverrideServerName is not supported and will fail.
func (*Credentials) ServerHandshake ¶
func (c *Credentials) ServerHandshake(rawConn net.Conn) (net.Conn, credentials.AuthInfo, error)
ServerHandshake performs the server handshake.
Click to show internal directories.
Click to hide internal directories.