p2ps.group
Interface AuthorizationMechanism

All Known Implementing Classes:
CertificateAuthorizationMechanism

public interface AuthorizationMechanism

An authorization mechanisms is responsible for conducting the communication required to become authorized to join a group.

Version:
$Revision: 295 $
Author:
Ian Wang

Method Summary
 java.lang.String[] getAuthorizationTypes()
           
 void joinGroup(GroupAdvertisement groupad, Peer parent)
          Conducts the required communication to join the specified group.
 

Method Detail

getAuthorizationTypes

public java.lang.String[] getAuthorizationTypes()
Returns:
the authorization types handled by this mechanism

joinGroup

public void joinGroup(GroupAdvertisement groupad,
                      Peer parent)
               throws AuthorizationException,
                      java.io.IOException
Conducts the required communication to join the specified group.

Parameters:
groupad - the group adevrtisement
parent - the parent of the group peer (if known)
Throws:
AuthorizationException - if authorization is rejected
java.io.IOException