com.sun.jini.discovery.internal
Class KerberosEndpointInternalsAccess
java.lang.Object
com.sun.jini.discovery.internal.KerberosEndpointInternalsAccess
public class KerberosEndpointInternalsAccess
- extends Object
Provides a rendezvous point for the net.jini.jeri.kerberos transport
provider to register an EndpointInternals instance used by provider classes
for the net.jini.discovery.kerberos 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
KerberosEndpoint and KerberosServerEndpoints. |
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
KerberosEndpointInternalsAccess
private KerberosEndpointInternalsAccess()
set
public static void set(EndpointInternals endpointInternals)
- Registers EndpointInternals instance to use for back-door operations on
KerberosEndpoint and KerberosServerEndpoints. This method should be
called only once, from within the static initializer of the
KerberosEndpoint 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.