Resource Restriction Extractor (resource_restrictions/resource_restriction.rb)

conjur · app/domain/authentication/resource_restrictions/resource_restriction.rb · ruby · LGPL-3.0
security, auth, lang:ruby, tag:conjur

Holds resource restriction configurations extracted from host annotations. Reuse for security constraint management and host auditing.

# Source: https://github.com/cyberark/conjur | License: LGPL-3.0 | Modified files must remain under LGPL-3.0
# Modifications to this file must remain under LGPL-3.0.
# Provided via justclaw.it.com; keep this notice with the code.
module Authentication
  module ResourceRestrictions

    # This class instance holds the resource restriction extracted
    # from a host annotation.
    class ResourceRestriction
      attr_reader :name, :value

      def initialize(name:, value:)
        @name = name
        @value = value
      end
    end
  end
end

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key