public class BooleanPolicy extends java.lang.Object implements Policy
To fulfill a Boolean policy,
| Modifier and Type | Class and Description |
|---|---|
static class |
BooleanPolicy.BooleanOperator
A Boolean operator, either AND or OR.
|
| Constructor and Description |
|---|
BooleanPolicy(BooleanPolicy.BooleanOperator operator,
java.util.Collection<? extends Policy> children) |
BooleanPolicy(BooleanPolicy.BooleanOperator operator,
Policy... children) |
BooleanPolicy(org.cryptimeleon.math.serialization.Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Set<Policy> |
getChildren() |
BooleanPolicy.BooleanOperator |
getOperator() |
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
int |
hashCode() |
boolean |
isFulfilled(java.util.Collection<? extends PolicyFact> facts) |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
public BooleanPolicy(org.cryptimeleon.math.serialization.Representation repr)
public BooleanPolicy(BooleanPolicy.BooleanOperator operator, java.util.Collection<? extends Policy> children)
public BooleanPolicy(BooleanPolicy.BooleanOperator operator, Policy... children)
public org.cryptimeleon.math.serialization.Representation getRepresentation()
getRepresentation in interface org.cryptimeleon.math.serialization.Representablepublic boolean isFulfilled(java.util.Collection<? extends PolicyFact> facts) throws WrongAccessStructureException
isFulfilled in interface PolicyWrongAccessStructureExceptionpublic BooleanPolicy.BooleanOperator getOperator()
public java.util.Set<Policy> getChildren()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic org.cryptimeleon.math.hash.ByteAccumulator updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator)
updateAccumulator in interface org.cryptimeleon.math.hash.UniqueByteRepresentable