class SamlTool::Certificate
Public Instance Methods
issuer_name()
click to toggle source
# File lib/saml_tool/certificate.rb, line 13 def issuer_name @issuer_name ||= slash_list_to_comma_list(issuer) end
slash_list_to_comma_list(string)
click to toggle source
# File lib/saml_tool/certificate.rb, line 21 def slash_list_to_comma_list(string) string = string.to_s string = string[1..-1] if string[0] == '/' string.split('/').reverse.join(',') end
subject_name()
click to toggle source
# File lib/saml_tool/certificate.rb, line 17 def subject_name @subject_name ||= slash_list_to_comma_list(subject) end
without_leading_and_trailing_labels()
click to toggle source
# File lib/saml_tool/certificate.rb, line 8 def without_leading_and_trailing_labels to_s.lines.to_a[1..-2].join end
Also aliased as: x509_certificate