public class NoopTokenAuthenticationManager extends Object implements com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Constructor and Description |
---|
NoopTokenAuthenticationManager() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.crowd.model.token.Token |
authenticateApplication(com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext authenticationContext,
com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) |
com.atlassian.crowd.model.token.Token |
authenticateApplicationWithoutValidatingPassword(com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext applicationAuthenticationContext,
com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) |
com.atlassian.crowd.model.token.Token |
authenticateUser(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext) |
com.atlassian.crowd.model.token.Token |
authenticateUser(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext,
com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) |
com.atlassian.crowd.model.token.Token |
authenticateUserWithoutValidatingPassword(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext) |
List<com.atlassian.crowd.model.application.Application> |
findAuthorisedApplications(com.atlassian.crowd.model.user.User user,
String applicationName) |
com.atlassian.crowd.model.user.User |
findUserByToken(String tokenKey,
String applicationName) |
com.atlassian.crowd.model.token.Token |
findUserTokenByKey(String tokenKey,
String applicationName) |
Date |
getTokenExpiryTime(com.atlassian.crowd.model.token.Token token) |
void |
invalidateAllTokens() |
void |
invalidateToken(String token) |
void |
invalidateTokensForUser(String username,
String exclusionToken,
String applicationName) |
void |
removeExpiredTokens() |
com.atlassian.crowd.model.token.Token |
validateApplicationToken(String tokenKey,
com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors) |
com.atlassian.crowd.model.token.Token |
validateUserToken(String userTokenKey,
com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors,
String application) |
public com.atlassian.crowd.model.token.Token authenticateApplication(com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext authenticationContext, com.atlassian.crowd.model.token.TokenLifetime tokenLifetime)
authenticateApplication
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.token.Token authenticateApplicationWithoutValidatingPassword(com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext applicationAuthenticationContext, com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) throws com.atlassian.crowd.exception.InvalidAuthenticationException
authenticateApplicationWithoutValidatingPassword
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidAuthenticationException
public com.atlassian.crowd.model.token.Token authenticateUser(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext, com.atlassian.crowd.model.token.TokenLifetime tokenLifetime)
authenticateUser
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.token.Token authenticateUser(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext)
authenticateUser
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.token.Token authenticateUserWithoutValidatingPassword(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext)
authenticateUserWithoutValidatingPassword
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.token.Token validateApplicationToken(String tokenKey, com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors)
validateApplicationToken
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.token.Token validateUserToken(String userTokenKey, com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors, String application)
validateUserToken
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public void invalidateToken(String token)
invalidateToken
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public void invalidateAllTokens()
invalidateAllTokens
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public void removeExpiredTokens()
removeExpiredTokens
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.user.User findUserByToken(String tokenKey, String applicationName)
findUserByToken
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public com.atlassian.crowd.model.token.Token findUserTokenByKey(String tokenKey, String applicationName)
findUserTokenByKey
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public List<com.atlassian.crowd.model.application.Application> findAuthorisedApplications(com.atlassian.crowd.model.user.User user, String applicationName)
findAuthorisedApplications
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public void invalidateTokensForUser(String username, String exclusionToken, String applicationName)
invalidateTokensForUser
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
public Date getTokenExpiryTime(com.atlassian.crowd.model.token.Token token)
getTokenExpiryTime
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Copyright © 2002-2017 Atlassian. All Rights Reserved.