This class serves as a base class for concrete HTTP credential systems.
Instances of this class cannot be used to authenticate a connection; please use HttpBasic instead.
The username held by these credentials.
Override the Kernel#inspect method so that the password is not exposed when it is called.
# File lib/t2-server/net/credentials.rb, line 72 def inspect @@to_s.bind(self).call.sub!(%r>\z/) {" Username:#{self}>"} end
Return a String representation of these credentials. Just the username is returned; the password is kept hidden.
# File lib/t2-server/net/credentials.rb, line 60 def to_s @username end