module DRbService::PasswordAuthentication::ClassMethods
Methods added to including classes when PasswordAuthentication
is mixed in.
Attributes
password_digest[RW]
The SHA2 digest of the service password
Public Instance Methods
service_password( password )
click to toggle source
Set a password for the service. If you don’t specify a password, even guarded methods can be accessed. With a password set, the remote side can still call unguarded methods, but all other methods will be hidden.
# File lib/drbservice/passwordauth.rb, line 21 def service_password( password ) self.password_digest = Digest::SHA2.hexdigest( password ) DRbService.log.debug "Setting encrypted password for %p to " end