MCPcopy
hub / github.com/golang/crypto / AuthMethod

Interface AuthMethod

ssh/client_auth.go:158–168  ·  view source on GitHub ↗

An AuthMethod represents an instance of an RFC 4252 authentication method.

Source from the content-addressed store, hash-verified

156
157// An AuthMethod represents an instance of an RFC 4252 authentication method.
158type AuthMethod interface {
159 // auth authenticates user over transport t.
160 // Returns true if authentication is successful.
161 // If authentication is not successful, a []string of alternative
162 // method names is returned. If the slice is nil, it will be ignored
163 // and the previous set of possible methods will be reused.
164 auth(session []byte, user string, p packetConn, rand io.Reader, extensions map[string][]byte) (authResult, []string, error)
165
166 // method returns the RFC 4252 method name.
167 method() string
168}
169
170// "none" authentication, RFC 4252 section 5.2.
171type noneAuth int

Callers 1

clientAuthenticateMethod · 0.85

Implementers 4

maliciousGSSAPIWithMICAuthMethodssh/client_auth_test.go
configurablePublicKeyCallbackssh/client_auth_test.go
retryableAuthMethodssh/client_auth.go
gssAPIWithMICCallbackssh/client_auth.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…