net.jini.jeri.ssl
Class Utilities.Value

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference
          extended by com.sun.jini.collection.WeakSoftTable.SoftValue
              extended by net.jini.jeri.ssl.Utilities.Value
All Implemented Interfaces:
WeakSoftTable.RemovableReference
Enclosing class:
Utilities

private static final class Utilities.Value
extends WeakSoftTable.SoftValue

Used to store a soft reference to a SSLContext and the associated AuthManager in the SSL context map.


Field Summary
(package private)  AuthManager authManager
           
 
Fields inherited from class com.sun.jini.collection.WeakSoftTable.SoftValue
key
 
Constructor Summary
(package private) Utilities.Value(Utilities.ServerKey key, SSLContext sslContext, AuthManager authManager)
          Creates a value for the associated key containing the specified SSL context and auth manager.
private Utilities.Value(Utilities.Value value, ReferenceQueue queue)
          Copies the value to the queue.
 
Method Summary
 WeakSoftTable.RemovableReference copy(ReferenceQueue queue)
          Returns a copy of this instance registered with the specified queue.
(package private)  SSLContext getSSLContext()
          Returns the SSL context.
 
Methods inherited from class com.sun.jini.collection.WeakSoftTable.SoftValue
cleared
 
Methods inherited from class java.lang.ref.SoftReference
get
 
Methods inherited from class java.lang.ref.Reference
clear, enqueue, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authManager

final AuthManager authManager
Constructor Detail

Utilities.Value

Utilities.Value(Utilities.ServerKey key,
                SSLContext sslContext,
                AuthManager authManager)
Creates a value for the associated key containing the specified SSL context and auth manager.


Utilities.Value

private Utilities.Value(Utilities.Value value,
                        ReferenceQueue queue)
Copies the value 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.SoftValue
Parameters:
queue - the queue with which this instance should be registered
Returns:
the copy

getSSLContext

SSLContext getSSLContext()
Returns the SSL context.



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