Package org.jivesoftware.openfire.spi
Class BasicStreamIDFactory
- java.lang.Object
-
- org.jivesoftware.openfire.spi.BasicStreamIDFactory
-
- All Implemented Interfaces:
StreamIDFactory
public class BasicStreamIDFactory extends Object implements StreamIDFactory
A basic stream ID factory that produces IDs using a cryptographically strong random number generator.- Author:
- Iain Shigeoka
-
-
Constructor Summary
Constructors Constructor Description BasicStreamIDFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamID
createStreamID()
Generate a stream id.static StreamID
createStreamID(String name)
-
-
-
Method Detail
-
createStreamID
public StreamID createStreamID()
Description copied from interface:StreamIDFactory
Generate a stream id.- Specified by:
createStreamID
in interfaceStreamIDFactory
- Returns:
- A new, unique stream id
-
-