net.jini.jeri.ssl
Class Utilities.ServerKey

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.WeakReference
          extended by com.sun.jini.collection.WeakSoftTable.WeakKey
              extended by 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.


Field Summary
(package private)  Set permittedLocalPrincipals
           
 
Constructor Summary
Utilities.ServerKey(Subject subject, Set permittedLocalPrincipals)
          Creates a key for the specified subject and local principals
Utilities.ServerKey(Utilities.ServerKey serverKey, ReferenceQueue queue)
          Copies the key to the queue
 
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()
           
 
Methods inherited from class com.sun.jini.collection.WeakSoftTable.WeakKey
cleared
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

permittedLocalPrincipals

final Set permittedLocalPrincipals
Constructor Detail

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

Method Detail

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.