Class Type4UUIDIdentifierGenerationStrategy
java.lang.Object
net.shibboleth.shared.security.impl.Type4UUIDIdentifierGenerationStrategy
- All Implemented Interfaces:
IdentifierGenerationStrategy
@ThreadSafe
public class Type4UUIDIdentifierGenerationStrategy
extends Object
implements IdentifierGenerationStrategy
Generates a type 4 UUID as an identifier.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.shared.security.IdentifierGenerationStrategy
IdentifierGenerationStrategy.ParameterSpec, IdentifierGenerationStrategy.ProviderType -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGenerates an identifier guaranteed to be XML ID safe.generateIdentifier(boolean xmlSafe) Generates an identifier.
-
Constructor Details
-
Type4UUIDIdentifierGenerationStrategy
public Type4UUIDIdentifierGenerationStrategy()Default constructor.
-
-
Method Details
-
generateIdentifier
Generates an identifier guaranteed to be XML ID safe.- Specified by:
generateIdentifierin interfaceIdentifierGenerationStrategy- Returns:
- the identifier
-
generateIdentifier
Generates an identifier.- Specified by:
generateIdentifierin interfaceIdentifierGenerationStrategy- Parameters:
xmlSafe- true iff the result must be XML ID safe- Returns:
- the identifier
-