Modifier and Type | Method and Description |
---|---|
Token |
TokenDAOHibernate.add(Token token) |
Token |
SessionTokenStorage.add(Token token)
Persists a new token.
|
Token |
TokenDAOMemory.add(Token token) |
Token |
TokenDAOHibernate.findByID(long ID) |
Token |
TokenDAOHibernate.findByIdentifierHash(String identifierHash) |
Token |
SessionTokenStorage.findByIdentifierHash(String identifierHash)
Finds token by identifier hash.
|
Token |
TokenDAOMemory.findByIdentifierHash(String identifierHash) |
Token |
TokenDAOHibernate.findByRandomHash(String randomHash) |
Token |
SessionTokenStorage.findByRandomHash(String randomHash)
Finds token by random hash.
|
Token |
TokenDAOMemory.findByRandomHash(String randomHash) |
Token |
TokenDAOHibernate.update(Token token) |
Token |
SessionTokenStorage.update(Token token) |
Token |
TokenDAOMemory.update(Token token) |
Modifier and Type | Method and Description |
---|---|
Class<Token> |
TokenDAOHibernate.getPersistentClass() |
Collection<Token> |
TokenDAOHibernate.loadAll() |
Collection<Token> |
TokenDAO.loadAll()
Used when switching implementations.
|
Collection<Token> |
TokenDAOMemory.loadAll() |
Modifier and Type | Method and Description |
---|---|
Token |
TokenDAOHibernate.add(Token token) |
Token |
SessionTokenStorage.add(Token token)
Persists a new token.
|
Token |
TokenDAOMemory.add(Token token) |
void |
TokenDAOHibernate.remove(Token token) |
void |
SessionTokenStorage.remove(Token token)
Removes a token.
|
void |
TokenDAOMemory.remove(Token token) |
static boolean |
TokenDAOSearchUtils.tokenMatchesSearchRestriction(Token token,
SearchRestriction searchRestriction) |
Token |
TokenDAOHibernate.update(Token token) |
Token |
SessionTokenStorage.update(Token token) |
Token |
TokenDAOMemory.update(Token token) |
Modifier and Type | Method and Description |
---|---|
void |
TokenDAOHibernate.saveAll(Collection<Token> tokens) |
void |
TokenDAO.saveAll(Collection<Token> tokens)
Used when switching implementations.
|
void |
TokenDAOMemory.saveAll(Collection<Token> tokens) |
Constructor and Description |
---|
TokenDAOMemory(com.atlassian.cache.Cache<String,Token> randomHashCache,
com.atlassian.cache.Cache<String,Token> identifierHashCache) |
TokenDAOMemory(com.atlassian.cache.Cache<String,Token> randomHashCache,
com.atlassian.cache.Cache<String,Token> identifierHashCache) |
Modifier and Type | Method and Description |
---|---|
Token |
ApplicationAuthenticatedEvent.getToken() |
Constructor and Description |
---|
ApplicationAuthenticatedEvent(Object source,
Application application,
Token token) |
Modifier and Type | Method and Description |
---|---|
Token |
TokenInvalidatedEvent.getToken() |
Constructor and Description |
---|
TokenInvalidatedEvent(Object source,
Token token) |
Modifier and Type | Method and Description |
---|---|
Token |
UserTokenVerificationSucceededEvent.getToken() |
Token |
UserAuthenticationSucceededEvent.getToken() |
Constructor and Description |
---|
UserAuthenticationSucceededEvent(Object source,
User user,
Application application,
Token token) |
UserTokenVerificationSucceededEvent(Application application,
Token token) |
UserTokenVerificationSucceededEvent(ImmutableApplication application,
Token token) |
Modifier and Type | Method and Description |
---|---|
Token |
RetryingTokenAuthenticationManager.authenticateApplication(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
TokenAuthenticationManagerImpl.authenticateApplication(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
AliasingAwareTokenAuthenticationManager.authenticateApplication(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
DelegatingTokenAuthenticationManager.authenticateApplication(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
TokenAuthenticationManager.authenticateApplication(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime)
Authenticates an application and generates an authentication token.
|
Token |
RetryingTokenAuthenticationManager.authenticateApplicationWithoutValidatingPassword(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
TokenAuthenticationManagerImpl.authenticateApplicationWithoutValidatingPassword(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
AliasingAwareTokenAuthenticationManager.authenticateApplicationWithoutValidatingPassword(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
DelegatingTokenAuthenticationManager.authenticateApplicationWithoutValidatingPassword(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime) |
Token |
TokenAuthenticationManager.authenticateApplicationWithoutValidatingPassword(Application application,
ApplicationAuthenticationContext authenticationContext,
TokenLifetime tokenLifetime)
Authenticates an application and generates an authentication token, ignoring the credentials.
|
Token |
TokenAuthenticationManagerImpl.authenticateUser(Application application,
UserAuthenticationContext authenticationContext,
boolean validatePassword,
TokenLifetime tokenLifetime) |
Token |
RetryingTokenAuthenticationManager.authenticateUser(Application application,
UserAuthenticationContext authenticateContext,
TokenLifetime tokenLifetime) |
Token |
TokenAuthenticationManagerImpl.authenticateUser(Application application,
UserAuthenticationContext authenticateContext,
TokenLifetime tokenLifetime) |
Token |
AliasingAwareTokenAuthenticationManager.authenticateUser(Application application,
UserAuthenticationContext authenticateContext,
TokenLifetime tokenLifetime) |
Token |
DelegatingTokenAuthenticationManager.authenticateUser(Application application,
UserAuthenticationContext authenticateContext,
TokenLifetime tokenLifetime) |
Token |
TokenAuthenticationManager.authenticateUser(Application application,
UserAuthenticationContext authenticateContext,
TokenLifetime tokenLifetime)
Authenticates a user and and generates an authentication token.
|
Token |
RetryingTokenAuthenticationManager.authenticateUserWithoutValidatingPassword(Application application,
UserAuthenticationContext authenticateContext) |
Token |
TokenAuthenticationManagerImpl.authenticateUserWithoutValidatingPassword(Application application,
UserAuthenticationContext authenticateContext) |
Token |
AliasingAwareTokenAuthenticationManager.authenticateUserWithoutValidatingPassword(Application application,
UserAuthenticationContext authenticateContext) |
Token |
DelegatingTokenAuthenticationManager.authenticateUserWithoutValidatingPassword(Application application,
UserAuthenticationContext authenticateContext) |
Token |
TokenAuthenticationManager.authenticateUserWithoutValidatingPassword(Application application,
UserAuthenticationContext authenticateContext)
Feigns the authentication process for a user and creates a token for the authentication without validating the password.
|
Token |
TokenAuthenticationManagerImpl.findUserTokenByKey(String tokenKey,
Application application) |
Token |
AliasingAwareTokenAuthenticationManager.findUserTokenByKey(String tokenKey,
Application application) |
Token |
DelegatingTokenAuthenticationManager.findUserTokenByKey(String tokenKey,
Application application) |
Token |
TokenAuthenticationManager.findUserTokenByKey(String tokenKey,
Application application)
Returns the token matching a given key
|
Token |
TokenAuthenticationManagerImpl.validateApplicationToken(String tokenKey,
ValidationFactor[] clientValidationFactors) |
Token |
AliasingAwareTokenAuthenticationManager.validateApplicationToken(String tokenKey,
ValidationFactor[] validationFactors) |
Token |
DelegatingTokenAuthenticationManager.validateApplicationToken(String tokenKey,
ValidationFactor[] validationFactors) |
Token |
TokenAuthenticationManager.validateApplicationToken(String tokenKey,
ValidationFactor[] validationFactors)
Validates an application token key given validation factors.
|
Token |
TokenAuthenticationManagerImpl.validateUserToken(Application application,
String userTokenKey,
ValidationFactor[] validationFactors) |
Token |
AliasingAwareTokenAuthenticationManager.validateUserToken(Application application,
String userTokenKey,
ValidationFactor[] validationFactors) |
Token |
DelegatingTokenAuthenticationManager.validateUserToken(Application application,
String userTokenKey,
ValidationFactor[] validationFactors) |
Token |
TokenAuthenticationManager.validateUserToken(Application application,
String userTokenKey,
ValidationFactor[] validationFactors)
Validates a user token key given validation factors and checks that the user is allowed to authenticate
with the specified application
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.lang3.tuple.Pair<Token,Boolean> |
TokenAuthenticationManagerImpl.generateUserToken(long directoryID,
AuthenticationContext authenticationContext,
TokenLifetime tokenLifetime)
This method will return a
Token based on the passed in parameters. |
protected org.apache.commons.lang3.tuple.Pair<Token,Boolean> |
TokenAuthenticationManagerImpl.genericValidateToken(String token,
ValidationFactor[] validationFactors)
Will validate a token key with the given
ValidationFactor 's
against one (if it exists) in the datastore. |
Optional<Token> |
TokenAuthenticationManagerImpl.invalidateToken(String tokenKey) |
Optional<Token> |
AliasingAwareTokenAuthenticationManager.invalidateToken(String token) |
Optional<Token> |
DelegatingTokenAuthenticationManager.invalidateToken(String token) |
Optional<Token> |
TokenAuthenticationManager.invalidateToken(String token)
Attempts to invalidate a Token based on the passed in Token key (random hash).
|
protected org.apache.commons.lang3.tuple.Pair<Token,Boolean> |
TokenAuthenticationManagerImpl.maybeUpdateLastAccessedTime(Token token) |
Modifier and Type | Method and Description |
---|---|
User |
TokenAuthenticationManagerImpl.findUserByToken(Token token,
Application application) |
User |
AliasingAwareTokenAuthenticationManager.findUserByToken(Token token,
Application application) |
User |
DelegatingTokenAuthenticationManager.findUserByToken(Token token,
Application application) |
User |
TokenAuthenticationManager.findUserByToken(Token token,
Application application)
Will find a user via the passed in token.
|
Date |
TokenAuthenticationManagerImpl.getTokenExpiryTime(Token token) |
Date |
AliasingAwareTokenAuthenticationManager.getTokenExpiryTime(Token token) |
Date |
DelegatingTokenAuthenticationManager.getTokenExpiryTime(Token token) |
Date |
TokenAuthenticationManager.getTokenExpiryTime(Token token)
Returns the expiry time of a token.
|
protected boolean |
TokenAuthenticationManagerImpl.isExpired(Token token) |
protected org.apache.commons.lang3.tuple.Pair<Token,Boolean> |
TokenAuthenticationManagerImpl.maybeUpdateLastAccessedTime(Token token) |
Modifier and Type | Method and Description |
---|---|
Token |
SwitchableTokenManagerImpl.add(Token token) |
Token |
SwitchableTokenManagerImpl.findByIdentifierHash(String identifierHash) |
Token |
SwitchableTokenManagerImpl.findByRandomHash(String randomHash) |
Token |
SwitchableTokenManagerImpl.update(Token token) |
Modifier and Type | Method and Description |
---|---|
Token |
SwitchableTokenManagerImpl.add(Token token) |
void |
SwitchableTokenManagerImpl.remove(Token token) |
Token |
SwitchableTokenManagerImpl.update(Token token) |
Modifier and Type | Method and Description |
---|---|
Token |
TokenFactoryImpl.create(long directoryID,
String name,
TokenLifetime tokenLifetime,
List<ValidationFactor> validationFactors) |
Token |
TokenFactory.create(long directoryID,
String name,
TokenLifetime tokenLifetime,
List<ValidationFactor> validationFactors)
Generates a token key based on the supplied
validationFactors . |
Token |
TokenFactoryImpl.create(long directoryID,
String name,
TokenLifetime tokenLifetime,
List<ValidationFactor> validationFactors,
long secretNumber) |
Token |
TokenFactory.create(long directoryID,
String name,
TokenLifetime tokenLifetime,
List<ValidationFactor> validationFactors,
long secretNumber)
Generates a token key based on the supplied
validationFactors . |
Modifier and Type | Method and Description |
---|---|
Token |
Token.Builder.create() |
Constructor and Description |
---|
Builder(Token prototype) |
Token(Token other)
Deprecated.
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
static Token |
AuthenticatedApplicationUtil.getAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request)
Returns the application token from the
HttpSession , or null if there is none |
Modifier and Type | Method and Description |
---|---|
static void |
AuthenticatedApplicationUtil.setAuthenticatedApplicationToken(javax.servlet.http.HttpServletRequest request,
Token token)
Sets the application token of the authenticated application as an attribute of the
HttpSession . |
Copyright © 2020 Atlassian. All rights reserved.