com.atlassian.crowd.authentication
Class TokenKeyGeneratorImpl
java.lang.Object
com.atlassian.crowd.authentication.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(StringBuffer message,
List<ValidationFactor> validationFactors,
String factorName)
- If it exists, adds the validation factor specified in
factorName to the message.
Otherwise does nothing.
- Parameters:
message - validationFactors - factorName -
Copyright © 2010 Atlassian Pty Ltd. All Rights Reserved.