Example cases
Description
Code
{
"delegationEvidence": {
"notBefore": 1509633681,
"notOnOrAfter": 1509633741,
"policyIssuer": "did:ishare:EU.NL.NTRNL-10000005",
"target": {
"accessSubject": "did:ishare:EU.NL.NTRNL-10000001"
},
"policySets": [
{
"maxDelegationDepth": 2,
"target": {
"environment": {
"licenses": ["https://licenses.ishare.eu/general/resharing-with-adhering-parties/1.0"]
}
},
"policies": [
{
"target": {
"resource": {
"type": "GS1.CONTAINER",
"identifiers": ["*"],
"attributes": ["GS1.CONTAINER.ATTRIBUTE.ETA", "GS1.CONTAINER.ATTRIBUTE.WEIGHT"]
},
"actions": ["ISHARE.READ", "ISHARE.CREATE"],
"environment": {
"serviceProviders": ["did:ishare:EU.NL.NTRNL-10000003"]
}
},
"rules": [
{
"effect": "Permit"
},
{
"effect": "Deny",
"target": {
"resource": {
"attributes": ["GS1.CONTAINER.ATTRIBUTE.ETA"]
},
"actions": ["ISHARE.CREATE"]
}
},
{
"effect": "Deny"
}
]
}
]
}
]
}
}{
"delegationEvidence": {
"notBefore": 1509633681,
"notOnOrAfter": 1509633741,
"policyIssuer": "did:ishare:EU.NL.NTRNL-10000005",
"target": {
"accessSubject": "did:ishare:EU.NL.NTRNL-10000001"
},
"policySets": [
{
"maxDelegationDepth": 2,
"target": {
"environment": {
"licenses": ["https://licenses.ishare.eu/general/resharing-with-adhering-parties/1.0"]
}
},
"policies": [
{
"target": {
"resource": {
"type": "GS1.CONTAINER",
"identifiers": ["*"],
"attributes": ["GS1.CONTAINER.ATTRIBUTE.ETA"]
},
"actions": ["ISHARE.READ"],
"environment": {
"serviceProviders": ["did:ishare:EU.NL.NTRNL-10000003"]
}
},
"rules": [
{
"effect": "Permit"
}
]
},
{
"target": {
"resource": {
"type": "GS1.CONTAINER",
"identifiers": ["*"],
"attributes": ["GS1.CONTAINER.ATTRIBUTE.WEIGHT"]
},
"actions": ["ISHARE.CREATE"]
},
"rules": [
{
"effect": "Permit"
}
]
}
]
}
]
}
}{
"delegationEvidence": {
"notBefore": 1509633681,
"notOnOrAfter": 1509633741,
"policyIssuer": "did:ishare:EU.NL.NTRNL-10000005",
"target": {
"accessSubject": "did:ishare:EU.NL.NTRNL-10000001"
},
"policySets": [
{
"maxDelegationDepth": 2,
"target": {
"environment": {
"licenses": ["https://licenses.ishare.eu/general/resharing-with-adhering-parties/1.0"]
}
},
"policies": [
{
"target": {
"resource": {
"type": "GS1.CONTAINER",
"identifiers": ["*"],
"attributes": ["GS1.CONTAINER.ATTRIBUTE.ETA", "GS1.CONTAINER.ATTRIBUTE.WEIGHT"]
},
"actions": ["ISHARE.READ", "ISHARE.CREATE"],
"environment": {
"serviceProviders": ["did:ishare:EU.NL.NTRNL-10000003"]
}
},
"rule": {
"effect": "Permit"
}
}
]
},
{
"target": {
"environment": {
"licenses": ["https://licenses.ishare.eu/general-non-commercial-use/1.0"]
}
},
"policies": [
{
"target": {
"resource": {
"type": "GS1.CONTAINER",
"identifiers": ["*"],
"attributes": ["GS1.CONTAINER.ATTRIBUTE.ORIGIN"]
},
"actions": ["ISHARE.READ"]
},
"rule": {
"effect": "Permit"
}
}
]
}
]
}
}Last updated