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.application.Application application,
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.application.Application application,
com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext authenticationContext,
com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) |
com.atlassian.crowd.model.token.Token |
authenticateUser(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.authentication.UserAuthenticationContext authenticateContext,
com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) |
com.atlassian.crowd.model.token.Token |
authenticateUserWithoutValidatingPassword(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.authentication.UserAuthenticationContext authenticateContext) |
List<com.atlassian.crowd.model.application.Application> |
findAuthorisedApplications(com.atlassian.crowd.model.user.User user,
String applicationName) |
com.atlassian.crowd.model.user.User |
findUserByToken(com.atlassian.crowd.model.token.Token token,
com.atlassian.crowd.model.application.Application application) |
com.atlassian.crowd.model.token.Token |
findUserTokenByKey(String tokenKey,
com.atlassian.crowd.model.application.Application application) |
Date |
getTokenExpiryTime(com.atlassian.crowd.model.token.Token token) |
void |
invalidateAllTokens() |
Optional<com.atlassian.crowd.model.token.Token> |
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(com.atlassian.crowd.model.application.Application application,
String userTokenKey,
com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors) |
public com.atlassian.crowd.model.token.Token authenticateApplication(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext authenticationContext, com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) throws com.atlassian.crowd.exception.InvalidAuthenticationException
authenticateApplication
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidAuthenticationException
public com.atlassian.crowd.model.token.Token authenticateApplicationWithoutValidatingPassword(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext authenticationContext, 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.application.Application application, com.atlassian.crowd.model.authentication.UserAuthenticationContext authenticateContext, com.atlassian.crowd.model.token.TokenLifetime tokenLifetime) throws com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.InactiveAccountException, com.atlassian.crowd.manager.application.ApplicationAccessDeniedException, com.atlassian.crowd.exception.ExpiredCredentialException
authenticateUser
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidAuthenticationException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.InactiveAccountException
com.atlassian.crowd.manager.application.ApplicationAccessDeniedException
com.atlassian.crowd.exception.ExpiredCredentialException
public com.atlassian.crowd.model.token.Token authenticateUserWithoutValidatingPassword(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.authentication.UserAuthenticationContext authenticateContext) throws com.atlassian.crowd.exception.InvalidAuthenticationException, com.atlassian.crowd.exception.OperationFailedException, com.atlassian.crowd.exception.InactiveAccountException, com.atlassian.crowd.manager.application.ApplicationAccessDeniedException
authenticateUserWithoutValidatingPassword
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidAuthenticationException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.InactiveAccountException
com.atlassian.crowd.manager.application.ApplicationAccessDeniedException
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(com.atlassian.crowd.model.application.Application application, String userTokenKey, com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors) throws com.atlassian.crowd.exception.InvalidTokenException, com.atlassian.crowd.manager.application.ApplicationAccessDeniedException, com.atlassian.crowd.exception.OperationFailedException
validateUserToken
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidTokenException
com.atlassian.crowd.manager.application.ApplicationAccessDeniedException
com.atlassian.crowd.exception.OperationFailedException
public Optional<com.atlassian.crowd.model.token.Token> 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(com.atlassian.crowd.model.token.Token token, com.atlassian.crowd.model.application.Application application) throws com.atlassian.crowd.exception.InvalidTokenException, com.atlassian.crowd.exception.OperationFailedException
findUserByToken
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidTokenException
com.atlassian.crowd.exception.OperationFailedException
public com.atlassian.crowd.model.token.Token findUserTokenByKey(String tokenKey, com.atlassian.crowd.model.application.Application application) throws com.atlassian.crowd.exception.InvalidTokenException, com.atlassian.crowd.manager.application.ApplicationAccessDeniedException, com.atlassian.crowd.exception.OperationFailedException
findUserTokenByKey
in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
com.atlassian.crowd.exception.InvalidTokenException
com.atlassian.crowd.manager.application.ApplicationAccessDeniedException
com.atlassian.crowd.exception.OperationFailedException
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-2022 Atlassian. All Rights Reserved.