Class FixedStringIdentifierGenerationStrategy

java.lang.Object
net.shibboleth.utilities.java.support.security.impl.FixedStringIdentifierGenerationStrategy
All Implemented Interfaces:
IdentifierGenerationStrategy

@Deprecated(since="8.4.0", forRemoval=true) public class FixedStringIdentifierGenerationStrategy extends Object implements IdentifierGenerationStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
Identifier generation strategy using a fixed identifier string. This can be used in circumstances where there is no requirement that identifiers be different from each other.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Fixed identifier to use for all invocations.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generates an identifier guaranteed to be XML ID safe.
    generateIdentifier(boolean xmlSafe)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generates an identifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • identifier

      @Nonnull @NotEmpty private final String identifier
      Deprecated, for removal: This API element is subject to removal in a future version.
      Fixed identifier to use for all invocations.
  • Constructor Details

    • FixedStringIdentifierGenerationStrategy

      public FixedStringIdentifierGenerationStrategy(@Nonnull @NotEmpty String id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor.
      Parameters:
      id - fixed identifier to use for all invocations.
  • Method Details

    • generateIdentifier

      @Nonnull @NotEmpty public String generateIdentifier()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generates an identifier guaranteed to be XML ID safe.
      Specified by:
      generateIdentifier in interface IdentifierGenerationStrategy
      Returns:
      the identifier
    • generateIdentifier

      @Nonnull @NotEmpty public String generateIdentifier(boolean xmlSafe)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generates an identifier.
      Specified by:
      generateIdentifier in interface IdentifierGenerationStrategy
      Parameters:
      xmlSafe - true iff the result must be XML ID safe
      Returns:
      the identifier