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 StringidentifierDeprecated, 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 FixedStringIdentifierGenerationStrategy(String id)Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgenerateIdentifier()Deprecated, for removal: This API element is subject to removal in a future version.Generates an identifier guaranteed to be XML ID safe.StringgenerateIdentifier(boolean xmlSafe)Deprecated, for removal: This API element is subject to removal in a future version.Generates an identifier.
-
-
-
Method Detail
-
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:
generateIdentifierin interfaceIdentifierGenerationStrategy- 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:
generateIdentifierin interfaceIdentifierGenerationStrategy- Parameters:
xmlSafe- true iff the result must be XML ID safe- Returns:
- the identifier
-
-