Interface PersistentIdGenerator

All Superinterfaces:
Serializable

public interface PersistentIdGenerator extends Serializable
Generates a unique consistent Id based on the principal.
Since:
3.1
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(String principal, String service)
    Generates a PersistentId based on some algorithm plus the principal.
    default String
    generate(String principal, Service service)
    Generates a PersistentId based on some algorithm plus the principal.
    default String
    generate(Principal principal)
    Generate string.
    generate(Principal principal, String service)
    Generates a PersistentId based on some algorithm plus the principal.
    default String
    generate(Principal principal, Service service)
    Generates a PersistentId based on some algorithm plus the principal.
  • Method Details

    • generate

      String generate(String principal, String service)
      Generates a PersistentId based on some algorithm plus the principal.
      Parameters:
      principal - the principal to generate the id for.
      service - the service for which the id may be generated.
      Returns:
      the generated persistent id.
    • generate

      default String generate(Principal principal, Service service)
      Generates a PersistentId based on some algorithm plus the principal.
      Parameters:
      principal - the principal to generate the id for.
      service - the service for which the id may be generated.
      Returns:
      the generated persistent id.
    • generate

      String generate(Principal principal, String service)
      Generates a PersistentId based on some algorithm plus the principal.
      Parameters:
      principal - the principal to generate the id for.
      service - the service for which the id may be generated.
      Returns:
      the generated persistent id.
    • generate

      default String generate(String principal, Service service)
      Generates a PersistentId based on some algorithm plus the principal.
      Parameters:
      principal - the principal to generate the id for.
      service - the service for which the id may be generated.
      Returns:
      the generated persistent id.
    • generate

      default String generate(Principal principal)
      Generate string.
      Parameters:
      principal - the principal
      Returns:
      the string