Class: RedhatAccess::Authentication::Cert

Inherits:
Object
  • Object
show all
Defined in:
app/services/redhat_access/authentication/client_authentication.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#certObject

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

#uuidObject



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