Skip to content

Commit

Permalink
update readme (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-roberts authored Aug 26, 2024
1 parent 5286339 commit 5b4cc1f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,22 @@ create obligation "sample_obligation" {
""";
```

A user is required to execute PML. This user will be the defined author of any obligations created.
A user is required to execute PML and will only be used to define author of any obligations created. This user is the user
the obligation response will be executed on behalf of.
```java
// execute the pml and apply to existing policy
pap.executePML(new UserContext("u1")), pml);

// or

// reset the current policy befire applying the PML
pap.deserialize(new UserContext("u1"), pml, new PMLDeserializer())
pap.deserialize(new UserContext("u1"), pml, new PMLDeserializer());
```

#### Query access

```java
AccessRightSet privileges = pap.query().access().computePrivileges(new UserContext("u1"), "o1");
```

### PDP Usage
Expand Down

0 comments on commit 5b4cc1f

Please sign in to comment.