Make TransportAuthenticator not embed Credentials

This commit is contained in:
Menghan Li
2016-06-06 16:24:46 -07:00
parent b60d3e9ed8
commit 6404c49192
6 changed files with 40 additions and 39 deletions

View File

@ -100,7 +100,6 @@ type TransportAuthenticator interface {
ServerHandshake(rawConn net.Conn) (net.Conn, AuthInfo, error)
// Info provides the ProtocolInfo of this TransportAuthenticator.
Info() ProtocolInfo
Credentials
}
// TLSInfo contains the auth information for a TLS authenticated connection.
@ -109,6 +108,7 @@ type TLSInfo struct {
State tls.ConnectionState
}
// AuthType returns the type of TLSInfo as a string.
func (t TLSInfo) AuthType() string {
return "tls"
}