public static class CompositeKey.NodeAndWeight
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
Constructor and Description |
---|
NodeAndWeight(java.security.PublicKey node,
int weight)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode.
Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CompositeKey.NodeAndWeight other) |
java.security.PublicKey |
component1() |
int |
component2() |
CompositeKey.NodeAndWeight |
copy(java.security.PublicKey node,
int weight)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode.
Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
|
boolean |
equals(java.lang.Object p) |
java.security.PublicKey |
getNode() |
int |
getWeight() |
int |
hashCode() |
NonExistentClass |
toASN1Primitive() |
java.lang.String |
toString() |
public NodeAndWeight(java.security.PublicKey node, int weight)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
public int compareTo(CompositeKey.NodeAndWeight other)
public NonExistentClass toASN1Primitive()
public java.lang.String toString()
public java.security.PublicKey getNode()
public int getWeight()
public java.security.PublicKey component1()
public int component2()
public CompositeKey.NodeAndWeight copy(java.security.PublicKey node, int weight)
Holds node - weight pairs for a CompositeKey. Ordered first by weight, then by node's hashCode. Each node should be assigned with a positive weight to avoid certain types of weight underflow attacks.
public int hashCode()
public boolean equals(java.lang.Object p)