Package | Description |
---|---|
net.jini.discovery |
These are utility classes and interfaces that conform to the discovery and join
protocol defined in the Jini Discovery and Join Specification.
|
net.jini.jeri |
Provides the fundamental abstractions and standard implementation
classes for Jini extensible remote invocation (Jini ERI).
|
net.jini.jeri.connection |
Provides interfaces and classes for implementing connection-based
Jini extensible remote invocation (Jini ERI) transport layer
providers.
|
net.jini.jeri.http |
Provides implementations of the
Endpoint and
ServerEndpoint abstractions that use HTTP
messages sent over TCP sockets as the underlying communication
mechanism. |
net.jini.jeri.kerberos |
Provides implementations of
Endpoint and ServerEndpoint that use Kerberos as the underlying
network security protocol to support security related invocation
constraints for remote requests. |
net.jini.jeri.ssl |
Provides implementations of
Endpoint and ServerEndpoint that use TLS/SSL and HTTPS (HTTP over
TLS/SSL) to support invocation constraints. |
net.jini.jeri.tcp |
Provides implementations of the
Endpoint and
ServerEndpoint abstractions that use TCP sockets
as the underlying communication mechanism. |
org.apache.river.discovery |
Provides a set of constraints, low-level utility classes, and provider
interfaces for participating in versions 1 and 2 of the multicast request,
multicast announcement, and unicast discovery protocols.
|
org.apache.river.discovery.internal | |
org.apache.river.discovery.kerberos |
Provides an implementation of the
net.jini.discovery.kerberos
discovery format, specified in the Jini Discovery and Join
Specification. |
org.apache.river.discovery.plaintext |
Provides an implementation of the
net.jini.discovery.plaintext
discovery format, specified in the Jini Discovery and Join
Specification. |
org.apache.river.discovery.ssl |
Provides an implementation of the
net.jini.discovery.ssl discovery
format, specified in the Jini Discovery and Join Specification. |
org.apache.river.jeri.internal.http | |
org.apache.river.jeri.internal.mux |
Constructor and Description |
---|
Initializer(Configuration config) |
Modifier and Type | Method and Description |
---|---|
InvocationConstraints |
ServerCapabilities.checkConstraints(InvocationConstraints constraints)
Verifies that this instance supports the transport layer
aspects of all of the specified requirements (both in general
and in the current security context), and returns the
requirements that must be at least partially implemented by
higher layers in order to fully satisfy all of the specified
requirements.
|
InvocationConstraints |
InboundRequest.checkConstraints(InvocationConstraints constraints)
Verifies that this request satisfies the transport layer
aspects of all of the specified requirements, and returns the
requirements that must be at least partially implemented by
higher layers in order to fully satisfy the specified
requirements.
|
private static void |
BasicInvocationDispatcher.checkConstraints(ServerCapabilities serverCapabilities,
InvocationConstraints constraints)
Check that the only unfulfilled requirement is Integrity.
|
Modifier and Type | Method and Description |
---|---|
InvocationConstraints |
ServerConnection.checkConstraints(InboundRequestHandle handle,
InvocationConstraints constraints)
Implements
InboundRequest.checkConstraints for a request with the
specified handle. |
InvocationConstraints |
ServerConnectionManager.Inbound.checkConstraints(InvocationConstraints constraints) |
Modifier and Type | Method and Description |
---|---|
private void |
Constraints.Distilled.addAlternatives(ConstraintAlternatives constraint,
boolean isRequirement)
If "isRequirement" is true, throws an
UnsupportedConstraintException if we do not support at
least the transport layer aspects of at least one of the
constraints in the given alternatives.
|
private void |
Constraints.Distilled.addConstraint(InvocationConstraint constraint,
boolean isRequirement)
If "isRequirement" is true, throws an
UnsupportedConstraintException if we do not support at
least the transport layer aspects of the given constraint.
|
(package private) static InvocationConstraints |
Constraints.check(InvocationConstraints constraints,
boolean relativeOK)
Checks that we support at least the transport layer aspects of
the given requirements (and throws an
UnsupportedConstraintException if not), and returns the
requirements that must be at least partially implemented by
higher layers and the supported preferences that must be at
least partially implemented by higher layers.
|
InvocationConstraints |
HttpServerEndpoint.checkConstraints(InvocationConstraints constraints)
Verifies that this instance supports the transport layer
aspects of all of the specified requirements (both in general
and in the current security context), and returns the
requirements that must be at least partially implemented by
higher layers in order to fully satisfy all of the specified
requirements.
|
protected InvocationConstraints |
HttpServerEndpoint.LH.Connection.checkConstraints(InvocationConstraints constraints) |
(package private) static Constraints.Distilled |
Constraints.distill(InvocationConstraints constraints,
boolean relativeOK)
Distills the given constraints to a form more directly usable
by this provider.
|
Constructor and Description |
---|
Distilled(InvocationConstraints constraints,
boolean relativeOK) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
KerberosUtil.secureThrow(Exception detailedException,
UnsupportedConstraintException genericException)
Only throw non-generic exception if caller has getSubject
permission.
|
Modifier and Type | Method and Description |
---|---|
InvocationConstraints |
KerberosServerEndpoint.ServerConnectionImpl.checkConstraints(InboundRequestHandle handle,
InvocationConstraints constraints) |
InvocationConstraints |
KerberosServerEndpoint.checkConstraints(InvocationConstraints constraints) |
private static KerberosPrincipal |
KerberosServerEndpoint.findServerPrincipal(Subject subject)
Pick the serverPrincipal from the given subject.
|
(package private) List |
KerberosEndpoint.RequestHandleImpl.getConfigs()
Get a list of satisfiable configurations.
|
static KerberosServerEndpoint |
KerberosServerEndpoint.getInstance(int port)
Returns a
KerberosServerEndpoint instance with the
specified port, using the default server subject, server
principal, and server host. |
static KerberosServerEndpoint |
KerberosServerEndpoint.getInstance(String serverHost,
int port)
Returns a
KerberosServerEndpoint instance with the
specified server host and port, using the default server
subject and server principal. |
static KerberosServerEndpoint |
KerberosServerEndpoint.getInstance(String serverHost,
int port,
SocketFactory csf,
ServerSocketFactory ssf)
Returns a
KerberosServerEndpoint instance with the
specified server host, port, and socket factories, using the
default server subject and server principal. |
static KerberosServerEndpoint |
KerberosServerEndpoint.getInstance(Subject serverSubject,
KerberosPrincipal serverPrincipal,
String serverHost,
int port)
Returns a
KerberosServerEndpoint instance with the
specified server subject, server principal, server host, and
port. |
static KerberosServerEndpoint |
KerberosServerEndpoint.getInstance(Subject serverSubject,
KerberosPrincipal serverPrincipal,
String serverHost,
int port,
SocketFactory csf,
ServerSocketFactory ssf)
Returns a
KerberosServerEndpoint instance with the
specified server subject, server principal, server host, port,
and socket factories. |
(package private) static void |
KerberosUtil.secureThrow(Exception detailedException,
UnsupportedConstraintException genericException)
Only throw non-generic exception if caller has getSubject
permission.
|
Constructor and Description |
---|
KerberosServerEndpoint(Subject serverSubject,
KerberosPrincipal serverPrincipal,
String serverHost,
int port,
SocketFactory csf,
ServerSocketFactory ssf)
Creates a Kerberos server endpoint with the specified subject,
server principal, server host, port, and socket factories.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
ClientAuthManager.checkAuthentication()
Checks if the subject still contains the proper credentials, and the
current access control context has the proper AuthenticationPermission,
to use the current session.
|
InvocationConstraints |
SslServerEndpointImpl.SslServerConnection.checkConstraints(InboundRequestHandle requestHandle,
InvocationConstraints constraints) |
(package private) InvocationConstraints |
SslServerEndpointImpl.checkConstraints(InvocationConstraints constraints) |
InvocationConstraints |
SslServerEndpoint.checkConstraints(InvocationConstraints constraints)
Checks that it is possible to receive requests that either
fully or partially satisfy the specified requirements, and
returns any constraints that must be fully or partially
implemented by higher layers in order to fully satisfy all of
the specified requirements.
|
InvocationConstraints |
HttpsServerEndpoint.checkConstraints(InvocationConstraints constraints)
Checks that it is possible to receive requests that either
fully or partially satisfy the specified requirements, and
returns any constraints that must be fully or partially
implemented by higher layers in order to fully satisfy all of
the specified requirements.
|
InvocationConstraints |
HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsInboundRequest.checkConstraints(InvocationConstraints constraints) |
private void |
SslServerEndpointImpl.SslListenEndpoint.checkCredentials()
Check that the subject has credentials for the principals specified
when the server endpoint was created.
|
private static List |
SslEndpointImpl.checkSubject(List contexts,
Subject clientSubject,
boolean constrainedServer,
InvocationConstraints constraints)
Returns a list of the contexts which are supported by principals and
credentials in the Subject.
|
private CallContext |
SslEndpointImpl.getCallContext(InvocationConstraints constraints)
Returns a context for making a remote call with the specified
constraints and the current subject.
|
Modifier and Type | Method and Description |
---|---|
private void |
Constraints.Distilled.addAlternatives(ConstraintAlternatives constraint,
boolean isRequirement)
If "isRequirement" is true, throws an
UnsupportedConstraintException if we do not support at
least the transport layer aspects of at least one of the
constraints in the given alternatives.
|
private void |
Constraints.Distilled.addConstraint(InvocationConstraint constraint,
boolean isRequirement)
If "isRequirement" is true, throws an
UnsupportedConstraintException if we do not support at
least the transport layer aspects of the given constraint.
|
(package private) static InvocationConstraints |
Constraints.check(InvocationConstraints constraints,
boolean relativeOK)
Checks that we support at least the transport layer aspects of
the given requirements (and throws an
UnsupportedConstraintException if not), and returns the
requirements that must be at least partially implemented by
higher layers and the supported preferences that must be at
least partially implemented by higher layers.
|
InvocationConstraints |
TcpServerEndpoint.LH.ServerConnectionImpl.checkConstraints(InboundRequestHandle handle,
InvocationConstraints constraints) |
InvocationConstraints |
TcpServerEndpoint.checkConstraints(InvocationConstraints constraints)
Verifies that this instance supports the transport layer
aspects of all of the specified requirements (both in general
and in the current security context), and returns the
requirements that must be at least partially implemented by
higher layers in order to fully satisfy all of the specified
requirements.
|
(package private) static Constraints.Distilled |
Constraints.distill(InvocationConstraints constraints,
boolean relativeOK)
Distills the given constraints to a form more directly usable
by this provider.
|
Constructor and Description |
---|
Distilled(InvocationConstraints constraints,
boolean relativeOK) |
Modifier and Type | Method and Description |
---|---|
private static void |
DiscoveryV1.checkConstraints(InvocationConstraints constraints) |
void |
DiscoveryConstraints.checkProtocolVersion(int version)
Checks the protocol version of an incoming multicast request,
announcement, or unicast discovery attempt, throwing an
UnsupportedConstraintException if handling of the given protocol does
not satisfy the constraints of this instance. |
void |
UnicastDiscoveryServer.checkUnicastDiscoveryConstraints(InvocationConstraints constraints)
Checks and returns normally if this server is capable of fulfilling the
given absolute constraints.
|
void |
UnicastDiscoveryClient.checkUnicastDiscoveryConstraints(InvocationConstraints constraints)
Checks and returns normally if this client is capable of fulfilling the
given absolute constraints.
|
static DiscoveryConstraints |
DiscoveryConstraints.process(InvocationConstraints constraints)
Processes the discovery-related constraints in the given set of
constraints, returning a
DiscoveryConstraints instance from
which the constraint results can be queried. |
(package private) Set |
DiscoveryConstraints.ConstraintReducer.reduce(InvocationConstraints constraints)
Returns the reduction of the given constraints into a single set of
alternatives for the target class.
|
private Set |
DiscoveryConstraints.ConstraintReducer.reduce(Set reduced,
Set constraints,
boolean required) |
Constructor and Description |
---|
DiscoveryConstraints(InvocationConstraints constraints) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
X500Provider.secureThrow(SecurityException detailedException,
UnsupportedConstraintException genericException)
Only throw non-generic exception if caller has getSubject
permission.
|
Modifier and Type | Method and Description |
---|---|
static void |
Plaintext.checkConstraints(InvocationConstraints constraints)
Returns normally if the given constraints can be satisfied by a
plaintext-based format/protocol (such as net.jini.discovery.plaintext,
or version 1 of the discovery protocols); otherwise, throws an
UnsupportedConstraintException .
|
(package private) static boolean |
EndpointBasedProvider.checkIntegrity(InvocationConstraints constraints)
Returns true if the given constraints include Integrity.YES as a
requirement or preference; returns false otherwise.
|
void |
EndpointBasedServer.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
void |
EndpointBasedClient.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
private static Collection |
X500Constraints.distill(Set constraints,
boolean request,
boolean required)
Returns principal-dependent constraints distilled from the given set of
overall constraints.
|
private EndpointBasedClient.ConnectionInfo |
EndpointBasedClient.getConnectionInfo(Socket socket,
InvocationConstraints constraints)
Returns components needed to initiate a connection over the given socket
in accordance with the specified constraints.
|
protected abstract Endpoint |
EndpointBasedClient.getEndpoint(SocketFactory factory,
InvocationConstraints constraints)
Returns an endpoint which uses the given socket factory, if non-null,
and may incorporate information (such as the expected server principal)
from the given set of constraints, if non-null.
|
protected abstract ServerEndpoint |
EndpointBasedServer.getServerEndpoint(ServerSocketFactory factory)
Returns a server endpoint which uses the given server socket factory, if
non-null.
|
(package private) static X500Constraints |
X500Constraints.process(InvocationConstraints constraints,
boolean request)
Returns X500Constraints instance representing the processed constraints.
|
(package private) static void |
X500Provider.secureThrow(SecurityException detailedException,
UnsupportedConstraintException genericException)
Only throw non-generic exception if caller has getSubject
permission.
|
Modifier and Type | Method and Description |
---|---|
void |
Server.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
void |
Client.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
protected Endpoint |
Client.ClientImpl.getEndpoint(SocketFactory factory,
InvocationConstraints constraints) |
private static KerberosPrincipal |
Client.ClientImpl.getKerberosPrincipal(InvocationConstraints constraints)
Returns the kerberos principal specified in the ServerMinPrincipal
requirements or preferences of the given constraints.
|
protected ServerEndpoint |
Server.ServerImpl.getServerEndpoint(ServerSocketFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
Server.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
void |
Client.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
Modifier and Type | Method and Description |
---|---|
void |
Server.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
void |
Client.checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
protected Endpoint |
Client.ClientImpl.getEndpoint(SocketFactory factory,
InvocationConstraints constraints) |
protected ServerEndpoint |
Server.ServerImpl.getServerEndpoint(ServerSocketFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected InvocationConstraints |
HttpServerConnection.checkConstraints(InvocationConstraints constraints)
Checks that the specified requirements are either fully or
partially satisfied by the constraints actually in force for
this connection, and returns any constraints that must be fully
or partially implemented by higher layers in order to fully
satisfy all of the specified requirements.
|
InvocationConstraints |
HttpServerConnection.InboundRequestImpl.checkConstraints(InvocationConstraints constraints) |
Modifier and Type | Method and Description |
---|---|
protected InvocationConstraints |
MuxServer.checkConstraints(InvocationConstraints constraints)
Checks that the specified requirements are either fully or
partially satisfied by the constraints actually in force for
this connection, and returns any constraints that must be fully
or partially implemented by higher layers in order to fully
satisfy all of the specified requirements.
|
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.