com.sun.jini.discovery.kerberos
Class Client.ClientImpl

java.lang.Object
  extended by com.sun.jini.discovery.internal.BaseProvider
      extended by com.sun.jini.discovery.internal.EndpointBasedProvider
          extended by com.sun.jini.discovery.internal.EndpointBasedClient
              extended by com.sun.jini.discovery.kerberos.Client.ClientImpl
All Implemented Interfaces:
DiscoveryFormatProvider, UnicastDiscoveryClient
Enclosing class:
Client

private static final class Client.ClientImpl
extends EndpointBasedClient


Field Summary
private static EndpointInternals epi
           
 
Fields inherited from class com.sun.jini.discovery.internal.EndpointBasedProvider
endpointInternals
 
Fields inherited from class com.sun.jini.discovery.internal.BaseProvider
formatName
 
Constructor Summary
Client.ClientImpl()
           
 
Method Summary
protected  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.
private static KerberosPrincipal getKerberosPrincipal(InvocationConstraints constraints)
          Returns the kerberos principal specified in the ServerMinPrincipal requirements or preferences of the given constraints.
 
Methods inherited from class com.sun.jini.discovery.internal.EndpointBasedClient
checkUnicastDiscoveryConstraints, doUnicastDiscovery
 
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
 
Methods inherited from interface com.sun.jini.discovery.DiscoveryFormatProvider
getFormatName
 

Field Detail

epi

private static EndpointInternals epi
Constructor Detail

Client.ClientImpl

Client.ClientImpl()
Method Detail

getEndpoint

protected Endpoint getEndpoint(SocketFactory factory,
                               InvocationConstraints constraints)
                        throws UnsupportedConstraintException
Description copied from class: EndpointBasedClient
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. Other parameters of the endpoint, such as the target host and port, are irrelevant from the standpoint of this class and can be chosen arbitrarily. Throws an UnsupportedConstraintException if the given constraints lack information needed to construct the endpoint.

Specified by:
getEndpoint in class EndpointBasedClient
Throws:
UnsupportedConstraintException

getKerberosPrincipal

private static KerberosPrincipal getKerberosPrincipal(InvocationConstraints constraints)
                                               throws UnsupportedConstraintException
Returns the kerberos principal specified in the ServerMinPrincipal requirements or preferences of the given constraints. Throws UnsupportedConstraintException if no kerberos principal is specified, a non-kerberos server principal is required, or multiple server principals are required.

Throws:
UnsupportedConstraintException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.