|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.uuid.VersionFourGenerator
XXX begin modification by stefan@apache.org
Field Summary |
Constructor Summary | |
VersionFourGenerator()
Constructs a new VersionFourGenerator. |
Method Summary | |
Object |
nextIdentifier()
Returns a new version four UUID. |
Object |
nextIdentifier(boolean secure)
Returns a new version four UUID. |
static void |
setPRNGProvider(String prngName,
String packageName)
Allows clients to set the pseudo-random number generator implementation used when generating a version four uuid with the secure option. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VersionFourGenerator()
Constructs a new VersionFourGenerator.
Method Detail |
public Object nextIdentifier()
Returns a new version four UUID.
public Object nextIdentifier(boolean secure)
Returns a new version four UUID.
This overloaded method may produce both UUID's using a SecureRandom
as well as using normal
Random
secure
- indicates whether or not to use SecureRandom
in generating the random bits.
Random
or SecureRandom
.public static void setPRNGProvider(String prngName, String packageName)
Allows clients to set the pseudo-random number generator implementation used when generating a version four uuid with
the secure option. The secure option uses a SecureRandom
. The packageName string may be null to specify
no preferred package.
prngName
- the pseudo-random number generator implementation name. For example "SHA1PRNG".packageName
- the package name for the PRNG provider. For example "SUN".
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |