net.jini.jeri.kerberos
Class KerberosEndpoint.CacheKey

java.lang.Object
  extended by net.jini.jeri.kerberos.KerberosEndpoint.CacheKey
Enclosing class:
KerberosEndpoint

private static final class KerberosEndpoint.CacheKey
extends Object

The key used for the softcache of this endpoint. It encapsulates the clientSubject and the InvocationConstraints associated with a request. To compute a key's hashcode identityHashCode of its contents are XORed together. For equals, == are used.


Field Summary
private  InvocationConstraints constraints
           
private  Subject subject
           
 
Constructor Summary
KerberosEndpoint.CacheKey(Subject subject, InvocationConstraints constraints)
          Construct a Key object
 
Method Summary
 boolean equals(Object o)
          Use == to compare content
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subject

private final Subject subject

constraints

private final InvocationConstraints constraints
Constructor Detail

KerberosEndpoint.CacheKey

KerberosEndpoint.CacheKey(Subject subject,
                          InvocationConstraints constraints)
Construct a Key object

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Use == to compare content

Overrides:
equals in class Object


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.