p2ps.imp.peer
Class DefaultIDFactory
java.lang.Object
p2ps.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIDFactory
public DefaultIDFactory()
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