p2ps.imp.group.certificates
Class CertificateAuthorizationMechanism

java.lang.Object
  extended byp2ps.imp.group.certificates.CertificateAuthorizationMechanism
All Implemented Interfaces:
AuthorizationMechanism

public class CertificateAuthorizationMechanism
extends java.lang.Object
implements AuthorizationMechanism

An implementation of the certificate authorization mechanism.

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static int MEMBERSHIP_CONNECT_ATTEMPTS
           
 
Constructor Summary
CertificateAuthorizationMechanism(Peer peer)
           
 
Method Summary
 java.lang.String[] getAuthorizationTypes()
           
 void joinGroup(GroupAdvertisement groupad, Peer parent)
          Conducts the required communication to join the specified group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEMBERSHIP_CONNECT_ATTEMPTS

public static int MEMBERSHIP_CONNECT_ATTEMPTS
Constructor Detail

CertificateAuthorizationMechanism

public CertificateAuthorizationMechanism(Peer peer)
Method Detail

getAuthorizationTypes

public java.lang.String[] getAuthorizationTypes()
Specified by:
getAuthorizationTypes in interface AuthorizationMechanism
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.

Specified by:
joinGroup in interface AuthorizationMechanism
Parameters:
groupad - the group adevrtisement
parent - the parent of the group peer (if known)
Throws:
AuthorizationException - if authorization is rejected
java.io.IOException