Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

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

    public 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved