GigaSpaces XAP 10.0.1 API

com.sun.jini.discovery
Interface ClientSubjectChecker

All Known Implementing Classes:
ClientPermissionChecker

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
 void checkClientSubject(Subject subject)
          Checks whether or not to permit exchanging or accepting data with/from a client authenticated as the given subject.
 

Method Detail

checkClientSubject

void checkClientSubject(Subject subject)
Checks whether or not to permit exchanging or accepting data with/from a client authenticated as the given subject. The passed subject is null if the client is unauthenticated; if non-null, it must be read-only. Returns normally if the subject is acceptable; throws a SecurityException if not.

Parameters:
subject - the client subject to check
Throws:
SecurityException - if the client subject check fails
IllegalArgumentException - if the given subject is not read-only

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.