public class TokenKeyGeneratorImpl extends Object implements TokenKeyGenerator
Constructor and Description |
---|
TokenKeyGeneratorImpl(TrustedProxyManager trustedProxyManager,
String algorithm) |
Modifier and Type | Method and Description |
---|---|
protected void |
addValidationFactor(StringBuilder message,
List<ValidationFactor> validationFactors,
String factorName)
If it exists, adds the validation factor specified in
factorName to the message . |
String |
generateKey(long directoryID,
String name,
List<ValidationFactor> validationFactors)
Creates a String that will be used by a
Token as its key. |
public TokenKeyGeneratorImpl(TrustedProxyManager trustedProxyManager, String algorithm)
public String generateKey(long directoryID, String name, List<ValidationFactor> validationFactors) throws InvalidTokenException
TokenKeyGenerator
Token
as its key.
This 'key' will be based on the passed in parameters.generateKey
in interface TokenKeyGenerator
InvalidTokenException
protected void addValidationFactor(StringBuilder message, List<ValidationFactor> validationFactors, String factorName)
factorName
to the message
.
Otherwise does nothing.message
- message to buildvalidationFactors
- list of validation factorsfactorName
- name of validation factor to addCopyright © 2016 Atlassian. All rights reserved.