Interface IdentifierGenerationStrategy

All Known Implementing Classes:
FixedStringIdentifierGenerationStrategy, RandomIdentifierGenerationStrategy, SecureRandomIdentifierGenerationStrategy, Type4UUIDIdentifierGenerationStrategy

public interface IdentifierGenerationStrategy
Interface for identifier generators. This identifier can be used for things like digital signature identifiers, opaque principal identifiers, etc.
  • Method Summary

    Modifier and Type Method Description
    String generateIdentifier()
    Generates an identifier guaranteed to be XML ID safe.
    String generateIdentifier​(boolean xmlSafe)
    Generates an identifier.
  • Method Details

    • generateIdentifier

      @Nonnull @NotEmpty String generateIdentifier()
      Generates an identifier guaranteed to be XML ID safe.
      Returns:
      the identifier
    • generateIdentifier

      @Nonnull @NotEmpty String generateIdentifier​(boolean xmlSafe)
      Generates an identifier.
      Parameters:
      xmlSafe - true iff the result must be XML ID safe
      Returns:
      the identifier