com.atlassian.confluence.security.trust
Class KeyPairComparator
java.lang.Object
com.atlassian.confluence.security.trust.KeyPairComparator
- All Implemented Interfaces:
- Comparator
public class KeyPairComparator
- extends Object
- implements Comparator
Compares KeyPair
s for equality based on the equals
method of the public and private keys.
This is necessary as KeyPair does not define an equals
method itself.
This comparator does not actually impose an order key pairs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyPairComparator
public KeyPairComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator