org.keycloak.saml.processing.core.saml.v2.common

## Class IDGenerator

- java.lang.Object
- - org.keycloak.saml.processing.core.saml.v2.common.IDGenerator

-     public class IDGenerator
      extends Object

  Utility class that generates unique IDs
  Since:
    Jan 5, 2009
  Author:
    Anil.Saldhana@redhat.com

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IDGenerator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `create()`
    `static String` | `create(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 String create()

    - #### create

          public static String create(String prefix)

      Create an id that is prefixed by a string
      Parameters:
        `prefix` -
      Returns:
        an id
      Throws:
        `IllegalArgumentException` - when prefix is null

Copyright © 2020 JBoss by Red Hat. All rights reserved.