com.atlassian.confluence.security.trust
Class KeyPairComparator

java.lang.Object
  extended by com.atlassian.confluence.security.trust.KeyPairComparator
All Implemented Interfaces:
Comparator

public class KeyPairComparator
extends Object
implements Comparator

Compares KeyPairs 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.


Constructor Summary
KeyPairComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

KeyPairComparator

public KeyPairComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator


Copyright © 2003-2012 Atlassian. All Rights Reserved.