org.jboss.identity.federation.api.saml.v2.common
Class IDGenerator

java.lang.Object
  extended by org.jboss.identity.federation.api.saml.v2.common.IDGenerator

public class IDGenerator
extends java.lang.Object

Utility class that generates unique IDs

Since:
Jan 5, 2009
Author:
Anil.Saldhana@redhat.com

Constructor Summary
IDGenerator()
           
 
Method Summary
static java.lang.String create()
           
static java.lang.String create(java.lang.String prefix)
          Create an id that is prefixed by a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDGenerator

public IDGenerator()
Method Detail

create

public static java.lang.String create()

create

public static java.lang.String create(java.lang.String prefix)
Create an id that is prefixed by a string

Parameters:
prefix -
Returns:
an id
Throws:
java.lang.IllegalArgumentException - when prefix is null


Copyright © 2009 JBoss Inc.. All Rights Reserved.