com.sun.jini.discovery.internal
Class EndpointBasedProvider
java.lang.Object
com.sun.jini.discovery.internal.BaseProvider
com.sun.jini.discovery.internal.EndpointBasedProvider
- All Implemented Interfaces:
- DiscoveryFormatProvider
- Direct Known Subclasses:
- EndpointBasedClient, EndpointBasedServer
class EndpointBasedProvider
- extends BaseProvider
Superclass for endpoint-based unicast discovery providers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endpointInternals
protected final EndpointInternals endpointInternals
- Object providing access to non-public endpoint operations
EndpointBasedProvider
EndpointBasedProvider(String formatName,
EndpointInternals endpointInternals)
- Constructs instance with the given format name and object providing
access to non-public endpoint operations.
checkIntegrity
static boolean checkIntegrity(InvocationConstraints constraints)
throws UnsupportedConstraintException
- Returns true if the given constraints include Integrity.YES as a
requirement or preference; returns false otherwise. If the required
constraints include any constraint other than an Integrity constraint,
an UnsupportedConstraintException is thrown.
- Throws:
UnsupportedConstraintException
calcHandshakeHash
static byte[] calcHandshakeHash(ByteBuffer request,
ByteBuffer response)
- Returns the SHA-1 hash of the concatenation of the given unicast
discovery request and response handshake bytes.
update
private static void update(MessageDigest md,
ByteBuffer buf)
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.