Class RandomIdentifierGenerationStrategy

java.lang.Object
net.shibboleth.shared.security.impl.RandomIdentifierGenerationStrategy
All Implemented Interfaces:
IdentifierGenerationStrategy
Direct Known Subclasses:
SecureRandomIdentifierGenerationStrategy

@ThreadSafe public class RandomIdentifierGenerationStrategy extends Object implements IdentifierGenerationStrategy
Generates a random number of bytes via a Random source and encodes them into a string using a BinaryEncoder (Hex by default).
  • Field Details

    • random

      @Nonnull private final RandomGenerator random
      Random number generator.
    • sizeOfIdentifier

      private final int sizeOfIdentifier
      Number of random bytes in the identifier.
    • encoder

      @Nonnull private final org.apache.commons.codec.BinaryEncoder encoder
      Encoder used to convert the random bytes in to a string.
  • Constructor Details

  • Method Details