net.jini.jeri.ssl
Class Utilities.ClientKey

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
                  extended by net.jini.jeri.ssl.Utilities.ClientKey
All Implemented Interfaces:
WeakSoftTable.RemovableReference
Enclosing class:
Utilities

private static final class Utilities.ClientKey
extends Utilities.ServerKey

WeakKey for looking up a client SSLContext. Stores a weak reference to the subject, plus the permitted client and server principals, the endpoint, and whether client authentication is required.


Field Summary
(package private)  String[] cipherSuites
           
(package private)  boolean clientAuthRequired
           
(package private)  Endpoint endpoint
           
(package private)  Set permittedRemotePrincipals
           
 
Fields inherited from class net.jini.jeri.ssl.Utilities.ServerKey
permittedLocalPrincipals
 
Constructor Summary
(package private) Utilities.ClientKey(CallContext callContext)
          Creates a key for the specified client call context.
private Utilities.ClientKey(Utilities.ClientKey clientKey, 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

permittedRemotePrincipals

final Set permittedRemotePrincipals

endpoint

final Endpoint endpoint

clientAuthRequired

final boolean clientAuthRequired

cipherSuites

final String[] cipherSuites
Constructor Detail

Utilities.ClientKey

Utilities.ClientKey(CallContext callContext)
Creates a key for the specified client call context.


Utilities.ClientKey

private Utilities.ClientKey(Utilities.ClientKey clientKey,
                            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 Utilities.ServerKey
Parameters:
queue - the queue with which this instance should be registered
Returns:
the copy

hashCode

public int hashCode()
Overrides:
hashCode in class Utilities.ServerKey

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 Utilities.ServerKey


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