com.sun.jini.discovery.kerberos
Class Client.ClientImpl
java.lang.Object
com.sun.jini.discovery.internal.BaseProvider
com.sun.jini.discovery.internal.EndpointBasedProvider
com.sun.jini.discovery.internal.EndpointBasedClient
com.sun.jini.discovery.kerberos.Client.ClientImpl
- All Implemented Interfaces:
- DiscoveryFormatProvider, UnicastDiscoveryClient
- Enclosing class:
- Client
private static final class Client.ClientImpl
- extends EndpointBasedClient
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
epi
private static EndpointInternals epi
Client.ClientImpl
Client.ClientImpl()
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.