Class: RedhatAccess::Authentication::Cert
- Inherits:
-
Object
- Object
- RedhatAccess::Authentication::Cert
- Defined in:
- app/services/redhat_access/authentication/client_authentication.rb
Instance Attribute Summary collapse
-
#cert ⇒ Object
Returns the value of attribute cert.
Instance Method Summary collapse
-
#initialize(cert) ⇒ Cert
constructor
A new instance of Cert.
- #uuid ⇒ Object
Constructor Details
#initialize(cert) ⇒ Cert
Returns a new instance of Cert.
53 54 55 |
# File 'app/services/redhat_access/authentication/client_authentication.rb', line 53 def initialize(cert) self.cert = extract(cert) end |
Instance Attribute Details
#cert ⇒ Object
Returns the value of attribute cert.
52 53 54 |
# File 'app/services/redhat_access/authentication/client_authentication.rb', line 52 def cert @cert end |
Instance Method Details
#uuid ⇒ Object
56 57 58 |
# File 'app/services/redhat_access/authentication/client_authentication.rb', line 56 def uuid drop_cn_prefix_from_subject(@cert.subject.to_s) end |