Package com.sun.jini.discovery
Interface ClientSubjectChecker
public interface ClientSubjectChecker
Interface for approving or rejecting client subjects during unicast discovery and decoding of
multicast requests. Instances of this interface are passed to the
decodeMulticastRequest and handleUnicastDiscovery methods of the Discovery class
as a means of controlling whether or not data can be accepted from or exchanged with a client
authenticated as the given subject.- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientSubject(Subject subject) Checks whether or not to permit exchanging or accepting data with/from a client authenticated as the given subject.
-
Method Details
-
checkClientSubject
Checks whether or not to permit exchanging or accepting data with/from a client authenticated as the given subject. The passed subject isnullif the client is unauthenticated; if non-null, it must be read-only. Returns normally if the subject is acceptable; throws aSecurityExceptionif not.- Parameters:
subject- the client subject to check- Throws:
SecurityException- if the client subject check failsIllegalArgumentException- if the given subject is not read-only
-