|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.utils.GuidGenerator
Creates a Global/Universal Unique ID, per DCE RPC specification. Requires seed of MAC address/node identifier (12-digit hex string) for uniqueness. Specification found at the OpenGroup.Org web site.
Constructor Summary | |
GuidGenerator()
GuidGenerator() - default constructor |
|
GuidGenerator(java.lang.String newMAC)
GuidGenerator(String) - seeded constructor |
Method Summary | |
java.lang.String |
getNewGuid()
getNewGuid calls set to generate a new GUID |
static void |
main(java.lang.String[] args)
main is the unit testing interface that creates a new Guid instance and prints result of getNewGuid to System.out |
void |
set()
set is where all the work is done |
java.lang.String |
toString()
toString returns the current values as a single string per RFC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GuidGenerator() throws java.lang.Exception
public GuidGenerator(java.lang.String newMAC) throws java.lang.IllegalArgumentException
newMAC
- as the seed value for fifth element of string GUID
java.lang.IllegalArgumentException
Method Detail |
public java.lang.String getNewGuid()
public java.lang.String toString()
public void set()
public static void main(java.lang.String[] args)
args
- array for input arguments
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |