Class ApplicationAuthenticationServiceImpl
java.lang.Object
com.atlassian.crowd.service.authentication.AbstractApplicationAuthenticationService
com.atlassian.crowd.service.authentication.ApplicationAuthenticationServiceImpl
- All Implemented Interfaces:
ApplicationAuthenticationService
public class ApplicationAuthenticationServiceImpl
extends AbstractApplicationAuthenticationService
implements ApplicationAuthenticationService
-
Field Summary
Fields inherited from class com.atlassian.crowd.service.authentication.AbstractApplicationAuthenticationService
CALLING_BUNDLE_CACHE_LIFETIME_IN_DAYS
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationAuthenticationServiceImpl
(com.atlassian.diagnostics.util.CallingBundleResolver callingBundleResolver, AuditService auditService, TokenAuthenticationManager tokenAuthenticationManager) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(Application application, String username, List<ValidationFactor> validationFactors) Authenticates the user to the specified application.protected org.slf4j.Logger
Methods inherited from class com.atlassian.crowd.service.authentication.AbstractApplicationAuthenticationService
auditCallingBundle, authenticate
-
Constructor Details
-
ApplicationAuthenticationServiceImpl
public ApplicationAuthenticationServiceImpl(com.atlassian.diagnostics.util.CallingBundleResolver callingBundleResolver, AuditService auditService, TokenAuthenticationManager tokenAuthenticationManager)
-
-
Method Details
-
authenticate
@Nonnull public AuthenticationToken authenticate(@Nonnull Application application, @Nonnull String username, @Nullable List<ValidationFactor> validationFactors) throws ApplicationAccessDeniedException, OperationFailedException, InactiveAccountException, InvalidAuthenticationException Description copied from interface:ApplicationAuthenticationService
Authenticates the user to the specified application. This method will result in generating a session token, which can be used to access the specified application. The user's credentials will not be verified - it is the caller's responsibility to ensure the user can authenticate.- Specified by:
authenticate
in interfaceApplicationAuthenticationService
- Parameters:
application
- the application for which the token should be createdusername
- the name of the user who should be treated as authenticatedvalidationFactors
- validation factors to use when generating the token- Throws:
ApplicationAccessDeniedException
- if the user does not have access to authenticate with the Crowd application.OperationFailedException
- if the error was thrown by directory implementation when attempting to find or authenticate the user.InactiveAccountException
- if the user account is inactive.InvalidAuthenticationException
- if the authentication was not successful.
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLogger
in classAbstractApplicationAuthenticationService
-