public class ThresholdPolicy extends java.lang.Object implements Policy
| Constructor and Description |
|---|
ThresholdPolicy(int threshold,
java.util.Collection<? extends Policy> children) |
ThresholdPolicy(int threshold,
Policy... children) |
ThresholdPolicy(org.cryptimeleon.math.serialization.Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.ArrayList<Policy> |
getChildren() |
org.cryptimeleon.math.serialization.Representation |
getRepresentation() |
int |
getThreshold() |
int |
hashCode() |
boolean |
isFulfilled(java.util.Collection<? extends PolicyFact> facts) |
org.cryptimeleon.math.hash.ByteAccumulator |
updateAccumulator(org.cryptimeleon.math.hash.ByteAccumulator accumulator) |
public ThresholdPolicy(org.cryptimeleon.math.serialization.Representation repr)
public ThresholdPolicy(int threshold,
java.util.Collection<? extends Policy> children)
public ThresholdPolicy(int threshold,
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)
isFulfilled in interface Policypublic int getThreshold()
public java.util.ArrayList<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