public abstract class EndpointBasedClient extends BaseProvider implements UnicastDiscoveryClient
| Modifier and Type | Field and Description |
|---|---|
protected EndpointInternals |
endpointInternals
Object providing access to non-public endpoint operations
|
formatName| Modifier | Constructor and Description |
|---|---|
protected |
EndpointBasedClient(String formatName,
EndpointInternals endpointInternals)
Constructs instance with the given format name and object providing
access to non-public endpoint operations.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calcHandshakeHash(ByteBuffer request,
ByteBuffer response)
Returns the MessageDigest hash of the concatenation of the given unicast
discovery request and response handshake bytes.
|
void |
checkUnicastDiscoveryConstraints(InvocationConstraints constraints) |
UnicastResponse |
doUnicastDiscovery(Socket socket,
InvocationConstraints constraints,
ClassLoader defaultLoader,
ClassLoader verifierLoader,
Collection context,
ByteBuffer sent,
ByteBuffer received) |
protected abstract Endpoint |
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 MessageDigest |
handshakeHashAlgorithm()
Returns a MessageDigest, subclasses may override
to utilize different algorithms.
|
protected boolean |
readAnnotationCertsGrantPerm(InputStream in,
boolean verifyCodebaseIntegrity) |
protected UnicastResponse |
readUnicastResponse(InputStream in,
ClassLoader defaultLoader,
boolean verifyCodebaseIntegrity,
ClassLoader verifierLoader,
Collection context)
Client providers can override to utilize a different format.
|
getFormatNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatNameprotected final EndpointInternals endpointInternals
protected EndpointBasedClient(String formatName, EndpointInternals endpointInternals)
public void checkUnicastDiscoveryConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
checkUnicastDiscoveryConstraints in interface UnicastDiscoveryClientUnsupportedConstraintExceptionpublic UnicastResponse doUnicastDiscovery(Socket socket, InvocationConstraints constraints, ClassLoader defaultLoader, ClassLoader verifierLoader, Collection context, ByteBuffer sent, ByteBuffer received) throws IOException, ClassNotFoundException
doUnicastDiscovery in interface UnicastDiscoveryClientIOExceptionClassNotFoundExceptionprotected UnicastResponse readUnicastResponse(InputStream in, ClassLoader defaultLoader, boolean verifyCodebaseIntegrity, ClassLoader verifierLoader, Collection context) throws IOException, ClassNotFoundException
in - defaultLoader - verifyCodebaseIntegrity - verifierLoader - context - IOExceptionClassNotFoundExceptionprotected boolean readAnnotationCertsGrantPerm(InputStream in, boolean verifyCodebaseIntegrity) throws IOException
IOExceptionprotected abstract Endpoint getEndpoint(SocketFactory factory, InvocationConstraints constraints) throws UnsupportedConstraintException
UnsupportedConstraintExceptionprotected byte[] calcHandshakeHash(ByteBuffer request, ByteBuffer response)
protected abstract MessageDigest handshakeHashAlgorithm()
Copyright © 2016–2018. All rights reserved.