| Class | Mongo::Auth::X509 |
| In: |
lib/mongo/auth/x509.rb
lib/mongo/auth/x509/conversation.rb |
| Parent: | Object |
| MECHANISM | = | 'MONGODB-X509'.freeze |
The authentication mechinism string.
@since 2.0.0 |
| user | [R] | @return [ Mongo::Auth::User ] The user to authenticate. |
Instantiate a new authenticator.
@example Create the authenticator.
Mongo::Auth::X509.new(user)
@param [ Mongo::Auth::User ] user The user to authenticate.
@since 2.0.0
Log the user in on the given connection.
@example Log the user in.
user.login(connection)
@param [ Mongo::Connection ] connection The connection to log into.
on.
@return [ Protocol::Message ] The authentication response.
@since 2.0.0