p2ps.imp.group.certificates
Class CertificateAuthorizationMechanism
java.lang.Object
p2ps.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MEMBERSHIP_CONNECT_ATTEMPTS
public static int MEMBERSHIP_CONNECT_ATTEMPTS
CertificateAuthorizationMechanism
public CertificateAuthorizationMechanism(Peer peer)
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 adevrtisementparent - the parent of the group peer (if known)
- Throws:
AuthorizationException - if authorization is rejected
java.io.IOException