Class: Resolver

Inherits:
Array
  • Object
show all
Defined in:
lib/wss4r/security/resolver.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_user(usernametoken) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/wss4r/security/resolver.rb', line 2

def authenticate_user(usernametoken)
  self.each{|r|
    success = r.authenticate_user(usernametoken)
    return true if (success)
  }
  false
end

#certificate_by_subject(subject) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/wss4r/security/resolver.rb', line 16

def certificate_by_subject(subject)
  self.each{|r|
    certificate = r.certificate_by_subject(subject)
    return certificate if (certificate)
  }
  nil
end

#private_key(certificate) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/wss4r/security/resolver.rb', line 9

def private_key(certificate)
  self.each{|r|
    key = r.private_key(certificate)
    return key if (key)
  }
  nil
end