net.jini.jeri.kerberos
Class KerberosEndpoint.CacheKey
java.lang.Object
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
XOR
ed together. For equals
,
==
are used.
subject
private final Subject subject
constraints
private final InvocationConstraints constraints
KerberosEndpoint.CacheKey
KerberosEndpoint.CacheKey(Subject subject,
InvocationConstraints constraints)
- Construct a Key object
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.