Interface TokenKeyGenerator
- All Known Implementing Classes:
TokenKeyGeneratorImpl
public interface TokenKeyGenerator
Handles the creation of a 'random' token key
-
Method Summary
Modifier and TypeMethodDescriptiongenerateIdentifierHash(long directoryID, String name, List<ValidationFactor> validationFactors) Creates a String that will be used by aTokenas itsToken.identifierHash.generateRandomHash(long directoryID, String name, List<ValidationFactor> validationFactors) Creates a String that will be used by aTokenas itsToken.randomHash.
-
Method Details
-
generateRandomHash
String generateRandomHash(long directoryID, String name, List<ValidationFactor> validationFactors) throws InvalidTokenException Creates a String that will be used by aTokenas itsToken.randomHash. This 'key' will be based on the passed in parameters.- Returns:
- a base 64 encoded String representation of the passed in attributes
- Throws:
InvalidTokenException
-
generateIdentifierHash
String generateIdentifierHash(long directoryID, String name, List<ValidationFactor> validationFactors) throws InvalidTokenException Creates a String that will be used by aTokenas itsToken.identifierHash. This 'key' will be based on the passed in parameters.- Returns:
- a base 64 encoded String representation of the passed in attributes
- Throws:
InvalidTokenException
-