class IcAgent::Certificate

Public Class Methods

delegation(cert) click to toggle source

Retrieves the delegation from a certificate.

Parameters:

  • cert: The certificate object.

Returns: The delegation value.

# File lib/ic_agent/certificate.rb, line 38
def self.delegation(cert)
  cert.value['delegation']
end
lookup(path, cert) click to toggle source

Performs a lookup operation in the certificate tree based on the given path.

Parameters:

  • path: The path to lookup.

  • cert: The certificate object containing the tree.

Returns: The value found at the specified path in the tree.

# File lib/ic_agent/certificate.rb, line 18
def self.lookup(path, cert)
  lookup_path(path, cert.value['tree'])
end
signature(cert) click to toggle source

Retrieves the signature from a certificate.

Parameters:

  • cert: The certificate object.

Returns: The signature value.

# File lib/ic_agent/certificate.rb, line 28
def self.signature(cert)
  cert.value['signature']
end
tree(cert) click to toggle source

Retrieves the tree from a certificate.

Parameters:

  • cert: The certificate object.

Returns: The tree value.

# File lib/ic_agent/certificate.rb, line 48
def self.tree(cert)
  cert.value['tree']
end