com.sun.jini.discovery.internal
Class SslEndpointInternalsAccess
java.lang.Object
com.sun.jini.discovery.internal.SslEndpointInternalsAccess
public class SslEndpointInternalsAccess
- extends Object
Provides a rendezvous point for the net.jini.jeri.ssl transport provider to
register an EndpointInternals instance used by provider classes for the
net.jini.discovery.ssl unicast discovery format.
Method Summary |
static EndpointInternals |
get()
Returns registered EndpointInternals instance. |
static void |
set(EndpointInternals endpointInternals)
Registers EndpointInternals instance to use for back-door operations on
SslEndpoint and SslServerEndpoints. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endpointInternals
private static EndpointInternals endpointInternals
lock
private static final Object lock
SslEndpointInternalsAccess
private SslEndpointInternalsAccess()
set
public static void set(EndpointInternals endpointInternals)
- Registers EndpointInternals instance to use for back-door operations on
SslEndpoint and SslServerEndpoints. This method should be called only
once, from within the static initializer of the SslEndpoint class. If a
security manager is installed, this method checks that the calling
context has EndpointInternalsPermission. Throws IllegalStateException
if EndpointInternals instance has already been set.
get
public static EndpointInternals get()
- Returns registered EndpointInternals instance. Throws
IllegalStateException if EndpointInternals instance has not been set.
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.