com.atlassian.crowd.manager.token.factory
Class TokenKeyGeneratorImpl
java.lang.Object
com.atlassian.crowd.manager.token.factory.TokenKeyGeneratorImpl
- All Implemented Interfaces:
- TokenKeyGenerator
public class TokenKeyGeneratorImpl
- extends Object
- implements TokenKeyGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenKeyGeneratorImpl
public TokenKeyGeneratorImpl(TrustedProxyManager trustedProxyManager,
String algorithm)
generateKey
public String generateKey(long directoryID,
String name,
List<ValidationFactor> validationFactors)
throws InvalidTokenException
- Description copied from interface:
TokenKeyGenerator
- Creates a String that will be used by a
Token
as its key.
This 'key' will be based on the passed in parameters.
- Specified by:
generateKey
in interface TokenKeyGenerator
- Returns:
- a base 64 encoded String reprentation of the passed in attributes
- Throws:
InvalidTokenException
addValidationFactor
protected void addValidationFactor(StringBuilder message,
List<ValidationFactor> validationFactors,
String factorName)
- If it exists, adds the validation factor specified in
factorName
to the message
.
Otherwise does nothing.
- Parameters:
message
- message to buildvalidationFactors
- list of validation factorsfactorName
- name of validation factor to add
Copyright © 2013 Atlassian. All Rights Reserved.