Interface TokenKeyGenerator

All Known Implementing Classes:
TokenKeyGeneratorImpl

public interface TokenKeyGenerator
Handles the creation of a 'random' token key
  • Method Summary

    Modifier and Type
    Method
    Description
    generateIdentifierHash(long directoryID, String name, List<com.atlassian.crowd.model.authentication.ValidationFactor> validationFactors)
    Creates a String that will be used by a Token as its Token.identifierHash.
    generateRandomHash(long directoryID, String name, List<com.atlassian.crowd.model.authentication.ValidationFactor> validationFactors)
    Creates a String that will be used by a Token as its Token.randomHash.
  • Method Details

    • generateRandomHash

      String generateRandomHash(long directoryID, String name, List<com.atlassian.crowd.model.authentication.ValidationFactor> validationFactors) throws com.atlassian.crowd.exception.InvalidTokenException
      Creates a String that will be used by a Token as its Token.randomHash. This 'key' will be based on the passed in parameters.
      Returns:
      a base 64 encoded String representation of the passed in attributes
      Throws:
      com.atlassian.crowd.exception.InvalidTokenException
    • generateIdentifierHash

      String generateIdentifierHash(long directoryID, String name, List<com.atlassian.crowd.model.authentication.ValidationFactor> validationFactors) throws com.atlassian.crowd.exception.InvalidTokenException
      Creates a String that will be used by a Token as its Token.identifierHash. This 'key' will be based on the passed in parameters.
      Returns:
      a base 64 encoded String representation of the passed in attributes
      Throws:
      com.atlassian.crowd.exception.InvalidTokenException