Package com.grzm
Class NamedUUID
- java.lang.Object
-
- com.grzm.NamedUUID
-
-
Field Summary
Fields Modifier and Type Field Description static UUIDNILThe nil UUID,00000000-0000-0000-0000-000000000000static UUIDNS_DNSNamespace UUID for fully-qualified domain namesstatic UUIDNS_OIDNamespace UUID for ITU object identifiersstatic UUIDNS_URLNamespace UUID for URLsstatic UUIDNS_X500Namespace UUID for X.500 distinguished names
-
Constructor Summary
Constructors Constructor Description NamedUUID()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UUIDv3(String namespace, String name)Return the Version 3 UUID for the given namespace UUID string and namestatic UUIDv3(UUID namespace, String name)Return the a Version 3 UUID for the given namespace UUID and namestatic UUIDv5(String namespace, String name)Return the Version 5 UUID for the given namespace UUID string and namestatic UUIDv5(UUID namespace, String name)Return the Version 5 UUID for the given namespace UUID and name
-
-
-
Field Detail
-
NIL
public static final UUID NIL
The nil UUID,00000000-0000-0000-0000-000000000000
-
NS_DNS
public static final UUID NS_DNS
Namespace UUID for fully-qualified domain names
-
NS_URL
public static final UUID NS_URL
Namespace UUID for URLs
-
NS_OID
public static final UUID NS_OID
Namespace UUID for ITU object identifiers
-
NS_X500
public static final UUID NS_X500
Namespace UUID for X.500 distinguished names
-
-
Method Detail
-
v3
public static UUID v3(UUID namespace, String name) throws NullPointerException
Return the a Version 3 UUID for the given namespace UUID and name- Parameters:
namespace- UUID value for the namespacename- Namespaced value- Returns:
- Version 3 UUID corresponding to the given namespace and value
- Throws:
NullPointerException- when namespace or name are null
-
v3
public static UUID v3(String namespace, String name) throws NullPointerException, IllegalArgumentException
Return the Version 3 UUID for the given namespace UUID string and name- Parameters:
namespace- String UUID value for the namespacename- Namespaced value- Returns:
- Version 3 UUID corresponding to the given namespace and value
- Throws:
NullPointerException- when namespace or name are nullIllegalArgumentException- when namespace isn't a valid UUID value
-
v5
public static UUID v5(UUID namespace, String name) throws NullPointerException
Return the Version 5 UUID for the given namespace UUID and name- Parameters:
namespace- UUID value for the namespacename- Namespaced value- Returns:
- Version 5 UUID corresponding to the given namespace and value
- Throws:
NullPointerException- when namespace or name are null
-
v5
public static UUID v5(String namespace, String name) throws NullPointerException, IllegalArgumentException
Return the Version 5 UUID for the given namespace UUID string and name- Parameters:
namespace- String UUID value for the namespacename- Namespaced value- Returns:
- Version 5 UUID corresponding to the given namespace and value
- Throws:
NullPointerException- when namespace or name are nullIllegalArgumentException- when namespace isn't a valid UUID value
-
-