aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/org/ietf/jgss/GSSCredential.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/org/ietf/jgss/GSSCredential.java')
-rw-r--r--libjava/classpath/org/ietf/jgss/GSSCredential.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/libjava/classpath/org/ietf/jgss/GSSCredential.java b/libjava/classpath/org/ietf/jgss/GSSCredential.java
index 724825d5eed..bdf14971006 100644
--- a/libjava/classpath/org/ietf/jgss/GSSCredential.java
+++ b/libjava/classpath/org/ietf/jgss/GSSCredential.java
@@ -331,4 +331,14 @@ public interface GSSCredential extends Cloneable
* @return True if this object equals the other.
*/
boolean equals(Object another);
+
+ /**
+ * Return the hash code of this credential. When overriding {@link #equals},
+ * it is necessary to override hashCode() as well.
+ *
+ * @return the hash code that must be the same for two credentials if
+ * {@link #equals} returns true.
+ */
+ int hashCode();
+
}