Generators.nameBasedGenerator Method

Definition

Overloads

nameBasedGenerator()

Factory method for constructing UUID generator that uses specified random number generator for constructing UUIDs according to standard method number 5, but without using a namespace. Digester to use will be SHA-1 as recommened by UUID spec.

nameBasedGenerator(UUID namespace)

Factory method for constructing UUID generator that uses specified random number generator for constructing UUIDs according to standard method number 5, with specified namespace (or without one if null is specified). Digester to use will be SHA-1 as recommened by UUID spec.

nameBasedGenerator(UUID namespace, MessageDigest digester)

Factory method for constructing UUID generator that uses specified random number generator for constructing UUIDs according to standard method number 3 or 5, with specified namespace (or without one if null is specified), using specified digester. If digester is passed as null, a SHA-1 digester will be constructed.

nameBasedGenerator()

Factory method for constructing UUID generator that uses specified random number generator for constructing UUIDs according to standard method number 5, but without using a namespace. Digester to use will be SHA-1 as recommened by UUID spec.

public static NameBasedGenerator nameBasedGenerator()

Returns

nameBasedGenerator(UUID namespace)

Factory method for constructing UUID generator that uses specified random number generator for constructing UUIDs according to standard method number 5, with specified namespace (or without one if null is specified). Digester to use will be SHA-1 as recommened by UUID spec.

public static NameBasedGenerator nameBasedGenerator(UUID namespace)

Parameters

namespace
java.util.UUID

UUID that represents namespace to use; see NameBasedGenerator for 'standard' namespaces specified by UUID specs

Returns

nameBasedGenerator(UUID namespace, MessageDigest digester)

Factory method for constructing UUID generator that uses specified random number generator for constructing UUIDs according to standard method number 3 or 5, with specified namespace (or without one if null is specified), using specified digester. If digester is passed as null, a SHA-1 digester will be constructed.

public static NameBasedGenerator nameBasedGenerator(UUID namespace, MessageDigest digester)

Parameters

namespace
java.util.UUID

UUID that represents namespace to use; see NameBasedGenerator for 'standard' namespaces specified by UUID specs

digester
java.security.MessageDigest

Digester to use; should be a MD5 or SHA-1 digester.

Returns

Applies to