Class: SASL::Preferences

Inherits:
Object
  • Object
show all
Defined in:
lib/sasl/base.rb

Overview

You must derive from class Preferences and overwrite methods you want to implement.

Instance Method Summary collapse

Instance Method Details

#allow_plaintext?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/sasl/base.rb', line 37

def allow_plaintext?
  false
end

#authzidObject

Authorization identitiy (‘username@domain’ in XMPP)



11
12
13
# File 'lib/sasl/base.rb', line 11

def authzid
  nil
end

#digest_uriObject

digest-uri: serv-type/serv-name | serv-type/host/serv-name (‘xmpp/domain’ in XMPP)

Raises:



25
26
27
# File 'lib/sasl/base.rb', line 25

def digest_uri
  raise AbstractMethod
end

#has_password?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/sasl/base.rb', line 33

def has_password?
  false
end

#passwordObject



41
42
43
# File 'lib/sasl/base.rb', line 41

def password
  ''
end

#realmObject

Realm (‘domain’ in XMPP)

Raises:



17
18
19
# File 'lib/sasl/base.rb', line 17

def realm
  raise AbstractMethod
end

#usernameObject

Raises:



29
30
31
# File 'lib/sasl/base.rb', line 29

def username
  raise AbstractMethod
end

#want_anonymous?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/sasl/base.rb', line 45

def want_anonymous?
  false
end