Skip to main content
Version: v0.19.0

PolicyConfig

typestringrequired

Definition type of the policy

Possible values: [default, rules, manual]

Default value: default
permissions object[]

Permissions of the policy

  • Array [
  • actionstringrequired

    Action of the rule

    Example: use
    constraints object[]

    Constraints of the rule

  • Array [
  • typestringrequired

    Type of the constraint

    Example: CredentialType
    valuestringrequired

    Value of the constraint

    Example: MembershipCredential
  • ]
  • ]
  • prohibitions object[]

    Prohibitions of the policy

  • Array [
  • actionstringrequired

    Action of the rule

    Example: use
    constraints object[]

    Constraints of the rule

  • Array [
  • typestringrequired

    Type of the constraint

    Example: CredentialType
    valuestringrequired

    Value of the constraint

    Example: MembershipCredential
  • ]
  • ]
  • rawobject

    Raw serialized ODRL offer

    PolicyConfig
    {
    "type": "default",
    "permissions": [
    {
    "action": "use",
    "constraints": [
    {
    "type": "CredentialType",
    "value": "MembershipCredential"
    }
    ]
    }
    ],
    "prohibitions": [
    {
    "action": "use",
    "constraints": [
    {
    "type": "CredentialType",
    "value": "MembershipCredential"
    }
    ]
    }
    ],
    "raw": {}
    }