au.gov.nehta.vendorlibrary.pcehr.clients.common.util
Class OIDUtil

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.util.OIDUtil

public final class OIDUtil
extends java.lang.Object

Provides static functions to manipulate ASN.1 OIDs and UUIDs/GUIDs.


Method Summary
static java.lang.String convertUUIDToOIDIntegerPair(java.lang.String uuid)
          Convert a UUID to OID.
static java.lang.String convertUUIDToOIDIntegerPair(java.lang.String oid, java.lang.String uuid)
          Converts a Universally Unique Identifier (UUID) to an integer and then prepends an ASN.1 OID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertUUIDToOIDIntegerPair

public static java.lang.String convertUUIDToOIDIntegerPair(java.lang.String uuid)
Convert a UUID to OID.

Parameters:
uuid - UUID string to convert.
Returns:
OID string.

convertUUIDToOIDIntegerPair

public static java.lang.String convertUUIDToOIDIntegerPair(java.lang.String oid,
                                                           java.lang.String uuid)
Converts a Universally Unique Identifier (UUID) to an integer and then prepends an ASN.1 OID.

Parameters:
oid - The OID to prepend to the converted UUID.
uuid - A Universally unique identifier (UUID) to convert, of the format:
  • urn:uuid:a7b7c3b7-4639-43a9-8bb1-7cb8c91216c1
  • a7b7c3b7-4639-43a9-8bb1-7cb8c91216c1
Returns:
An OID prepended to the converted UUID. It will be in the format

{OID}.{IntegerUUID}