net.jini.jeri.ssl
Class Utilities.ServerKey
java.lang.Object
java.lang.ref.Reference<T>
java.lang.ref.WeakReference
com.sun.jini.collection.WeakSoftTable.WeakKey
net.jini.jeri.ssl.Utilities.ServerKey
- All Implemented Interfaces:
- WeakSoftTable.RemovableReference
- Direct Known Subclasses:
- Utilities.ClientKey
- Enclosing class:
- Utilities
private static class Utilities.ServerKey
- extends WeakSoftTable.WeakKey
WeakKey for looking up a server SSLContext. Stores a weak reference to
the subject, plus the permitted principals.
Method Summary |
WeakSoftTable.RemovableReference |
copy(ReferenceQueue queue)
Returns a copy of this instance registered with the specified queue. |
boolean |
equals(Object other)
Returns true if the argument is an instance of the same concrete
class, and if both objects had null keys, or if neither object has
had its weak key cleared and their values are ==. |
int |
hashCode()
|
permittedLocalPrincipals
final Set permittedLocalPrincipals
Utilities.ServerKey
Utilities.ServerKey(Subject subject,
Set permittedLocalPrincipals)
- Creates a key for the specified subject and local principals
Utilities.ServerKey
Utilities.ServerKey(Utilities.ServerKey serverKey,
ReferenceQueue queue)
- Copies the key to the queue
copy
public WeakSoftTable.RemovableReference copy(ReferenceQueue queue)
- Description copied from interface:
WeakSoftTable.RemovableReference
- Returns a copy of this instance registered with the specified queue.
- Specified by:
copy
in interface WeakSoftTable.RemovableReference
- Overrides:
copy
in class WeakSoftTable.WeakKey
- Parameters:
queue
- the queue with which this instance should be registered
- Returns:
- the copy
hashCode
public int hashCode()
- Overrides:
hashCode
in class WeakSoftTable.WeakKey
equals
public boolean equals(Object other)
- Description copied from class:
WeakSoftTable.WeakKey
- Returns true if the argument is an instance of the same concrete
class, and if both objects had null keys, or if neither object has
had its weak key cleared and their values are ==.
- Overrides:
equals
in class WeakSoftTable.WeakKey
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.