com.sun.media.jsdt
Interface Client


public abstract interface Client
extends java.io.Serializable

The Client interface.

Since:
JSDT 1.0
Version:
1.5 - 7th January 1999
Author:
Rich Burridge

Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 java.lang.Object authenticate(AuthenticationInfo info)
           used to authenticate a Client for potentially joining a managed object, or creating or destroying a ByteArray, Channel or Token within a managed Session.
 java.lang.String getName()
           get the name of this Client.
 

Method Detail

authenticate

public java.lang.Object authenticate(AuthenticationInfo info)
used to authenticate a Client for potentially joining a managed object, or creating or destroying a ByteArray, Channel or Token within a managed Session. The ByteArray, Channel, Session or Token manager will be doing this Client validation.

The manager sends the Client an authentication request. Within this request is a challenge. The Client replies with a response. This response is validated by the manager and determines if the Client will be allowed to join the ByteArray/Channel/Session/Token or create/destroy the ByteArray/Channel/Token.

The challenge given by the manager and the response provided by the Client are both Java objects. There must be some agreed policy between the manager and the Client with regards to these objects. In other words the Client needs to know what to do with the challenge and how to respond to it, and the manager needs to know how to handle that response.

Parameters:
info - the authentication information. This object needs to be serializable.
Returns:
the response by the Client to the managers challenge.

getName

public java.lang.String getName()
get the name of this Client.
Returns:
the name of the Client.