com.atlassian.jira.crowd.embedded
Class NoopTokenAuthenticationManager

java.lang.Object
  extended by com.atlassian.jira.crowd.embedded.NoopTokenAuthenticationManager
All Implemented Interfaces:
com.atlassian.crowd.manager.authentication.TokenAuthenticationManager

public class NoopTokenAuthenticationManager
extends Object
implements com.atlassian.crowd.manager.authentication.TokenAuthenticationManager

We don't provide any of this functionality. Just need to provide this guy because Crowd Rest Plugin needs an implementation.

Since:
v4.3

Constructor Summary
NoopTokenAuthenticationManager()
           
 
Method Summary
 com.atlassian.crowd.model.token.Token authenticateApplication(com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext applicationAuthenticationContext)
           
 com.atlassian.crowd.model.token.Token authenticateUser(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext)
           
 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 s)
           
 com.atlassian.crowd.model.user.User findUserByToken(String s, String s1)
           
 void invalidateToken(String s)
           
 void removeExpiredTokens()
           
 List<com.atlassian.crowd.model.token.Token> searchTokens(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.model.token.Token> tokenEntityQuery)
           
 com.atlassian.crowd.model.token.Token validateApplicationToken(String s, com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors)
           
 com.atlassian.crowd.model.token.Token validateUserToken(String s, com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors, String s1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoopTokenAuthenticationManager

public NoopTokenAuthenticationManager()
Method Detail

authenticateApplication

public com.atlassian.crowd.model.token.Token authenticateApplication(com.atlassian.crowd.model.authentication.ApplicationAuthenticationContext applicationAuthenticationContext)
                                                              throws com.atlassian.crowd.exception.InvalidAuthenticationException
Specified by:
authenticateApplication in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Throws:
com.atlassian.crowd.exception.InvalidAuthenticationException

authenticateUser

public com.atlassian.crowd.model.token.Token authenticateUser(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext)
                                                       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,
                                                              com.atlassian.crowd.exception.ApplicationNotFoundException
Specified by:
authenticateUser in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
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
com.atlassian.crowd.exception.ApplicationNotFoundException

authenticateUserWithoutValidatingPassword

public com.atlassian.crowd.model.token.Token authenticateUserWithoutValidatingPassword(com.atlassian.crowd.model.authentication.UserAuthenticationContext userAuthenticationContext)
                                                                                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.ApplicationNotFoundException
Specified by:
authenticateUserWithoutValidatingPassword in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
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.ApplicationNotFoundException

validateApplicationToken

public com.atlassian.crowd.model.token.Token validateApplicationToken(String s,
                                                                      com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors)
                                                               throws com.atlassian.crowd.exception.InvalidTokenException
Specified by:
validateApplicationToken in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Throws:
com.atlassian.crowd.exception.InvalidTokenException

validateUserToken

public com.atlassian.crowd.model.token.Token validateUserToken(String s,
                                                               com.atlassian.crowd.model.authentication.ValidationFactor[] validationFactors,
                                                               String s1)
                                                        throws com.atlassian.crowd.exception.InvalidTokenException,
                                                               com.atlassian.crowd.manager.application.ApplicationAccessDeniedException,
                                                               com.atlassian.crowd.exception.OperationFailedException
Specified by:
validateUserToken in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Throws:
com.atlassian.crowd.exception.InvalidTokenException
com.atlassian.crowd.manager.application.ApplicationAccessDeniedException
com.atlassian.crowd.exception.OperationFailedException

invalidateToken

public void invalidateToken(String s)
Specified by:
invalidateToken in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager

searchTokens

public List<com.atlassian.crowd.model.token.Token> searchTokens(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.model.token.Token> tokenEntityQuery)
Specified by:
searchTokens in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager

removeExpiredTokens

public void removeExpiredTokens()
Specified by:
removeExpiredTokens in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager

findUserByToken

public com.atlassian.crowd.model.user.User findUserByToken(String s,
                                                           String s1)
                                                    throws com.atlassian.crowd.exception.InvalidTokenException,
                                                           com.atlassian.crowd.exception.OperationFailedException,
                                                           com.atlassian.crowd.exception.ApplicationNotFoundException
Specified by:
findUserByToken in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Throws:
com.atlassian.crowd.exception.InvalidTokenException
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.ApplicationNotFoundException

findAuthorisedApplications

public List<com.atlassian.crowd.model.application.Application> findAuthorisedApplications(com.atlassian.crowd.model.user.User user,
                                                                                          String s)
                                                                                   throws com.atlassian.crowd.exception.OperationFailedException,
                                                                                          com.atlassian.crowd.exception.DirectoryNotFoundException,
                                                                                          com.atlassian.crowd.exception.ApplicationNotFoundException
Specified by:
findAuthorisedApplications in interface com.atlassian.crowd.manager.authentication.TokenAuthenticationManager
Throws:
com.atlassian.crowd.exception.OperationFailedException
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.ApplicationNotFoundException


Copyright © 2002-2012 Atlassian. All Rights Reserved.