p2ps.imp.peer
Class DefaultIDFactory

java.lang.Object
  extended byp2ps.imp.peer.DefaultIDFactory
All Implemented Interfaces:
IDFactoryInterface

public class DefaultIDFactory
extends java.lang.Object
implements IDFactoryInterface

A default id factory.

Version:
$Revision: 295 $
Author:
Ian Wang

Constructor Summary
DefaultIDFactory()
           
 
Method Summary
 java.lang.String generatePeerID(SecurityManager manager)
          Generates the peer id from the peer certificate
 java.lang.String newAdvertID()
           
 java.lang.String newGroupID()
          Generates a new peer id.
 java.lang.String newPipeID()
           
 java.lang.String newSendID()
           
 java.lang.String newServiceID()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIDFactory

public DefaultIDFactory()
Method Detail

generatePeerID

public java.lang.String generatePeerID(SecurityManager manager)
Generates the peer id from the peer certificate

Specified by:
generatePeerID in interface IDFactoryInterface
Parameters:
manager - the security manager (null if no certificates)

newGroupID

public java.lang.String newGroupID()
Description copied from interface: IDFactoryInterface
Generates a new peer id.

Specified by:
newGroupID in interface IDFactoryInterface

newAdvertID

public java.lang.String newAdvertID()
Specified by:
newAdvertID in interface IDFactoryInterface

newPipeID

public java.lang.String newPipeID()
Specified by:
newPipeID in interface IDFactoryInterface

newServiceID

public java.lang.String newServiceID()
Specified by:
newServiceID in interface IDFactoryInterface

newSendID

public java.lang.String newSendID()
Specified by:
newSendID in interface IDFactoryInterface