com.sun.jini.discovery.internal
Class EndpointBasedProvider

java.lang.Object
  extended by com.sun.jini.discovery.internal.BaseProvider
      extended by 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.


Field Summary
protected  EndpointInternals endpointInternals
          Object providing access to non-public endpoint operations
 
Fields inherited from class com.sun.jini.discovery.internal.BaseProvider
formatName
 
Constructor Summary
EndpointBasedProvider(String formatName, EndpointInternals endpointInternals)
          Constructs instance with the given format name and object providing access to non-public endpoint operations.
 
Method Summary
(package private) 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.
(package private) static boolean checkIntegrity(InvocationConstraints constraints)
          Returns true if the given constraints include Integrity.YES as a requirement or preference; returns false otherwise.
private static void update(MessageDigest md, ByteBuffer buf)
           
 
Methods inherited from class com.sun.jini.discovery.internal.BaseProvider
getFormatName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endpointInternals

protected final EndpointInternals endpointInternals
Object providing access to non-public endpoint operations

Constructor Detail

EndpointBasedProvider

EndpointBasedProvider(String formatName,
                      EndpointInternals endpointInternals)
Constructs instance with the given format name and object providing access to non-public endpoint operations.

Method Detail

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.