Modifier and Type | Class and Description |
---|---|
class |
TokenExpiredException
Thrown to indicate that the token has expired and is not valid anymore.
|
class |
TokenNotFoundException
Thrown to indicate that the token does not exist in the server.
|
Modifier and Type | Method and Description |
---|---|
User |
CrowdHttpAuthenticatorImpl.authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password) |
User |
CrowdHttpAuthenticator.authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password)
Authenticates the user based on provided credentials.
|
User |
CacheAwareCrowdHttpAuthenticator.authenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password) |
User |
CrowdHttpAuthenticatorImpl.authenticateWithoutValidatingPassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username) |
User |
CrowdHttpAuthenticator.authenticateWithoutValidatingPassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username)
Authenticates the user without validating password.
|
User |
CacheAwareCrowdHttpAuthenticator.authenticateWithoutValidatingPassword(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username) |
SOAPPrincipal |
HttpAuthenticator.getPrincipal(javax.servlet.http.HttpServletRequest request)
Attempts to retrieve the principal from the request.
|
SOAPPrincipal |
HttpAuthenticatorImpl.getPrincipal(javax.servlet.http.HttpServletRequest request) |
String |
HttpAuthenticator.getToken(javax.servlet.http.HttpServletRequest request)
Retrieve the Crowd authentication token from the request either via:
a request attribute (not request parameter), OR
a cookie on the request
|
String |
HttpAuthenticatorImpl.getToken(javax.servlet.http.HttpServletRequest request) |
User |
CrowdHttpAuthenticatorImpl.getUser(javax.servlet.http.HttpServletRequest request) |
User |
CrowdHttpAuthenticator.getUser(javax.servlet.http.HttpServletRequest request)
Attempts to retrieve the currently authenticated User from the request.
|
User |
CacheAwareCrowdHttpAuthenticator.getUser(javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
User |
RestCrowdClient.findUserFromSSOToken(String token) |
void |
RestCrowdClient.validateSSOAuthentication(String token,
List<ValidationFactor> validationFactors) |
Session |
RestCrowdClient.validateSSOAuthenticationAndGetSession(String token,
List<ValidationFactor> validationFactors) |
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.
|
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
|
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. |
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 |
---|---|
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 . |
String |
TokenFactoryImpl.createValidationHash(long directoryID,
String name,
List<ValidationFactor> validationFactors,
long secretNumber) |
String |
TokenFactory.createValidationHash(long directoryID,
String name,
List<ValidationFactor> validationFactors,
long secretNumber)
Generates random hash based on the supplied parameters.
|
String |
TokenKeyGenerator.generateIdentifierHash(long directoryID,
String name,
List<ValidationFactor> validationFactors)
Creates a String that will be used by a
Token as its Token.identifierHash . |
String |
TokenKeyGeneratorImpl.generateIdentifierHash(long directoryID,
String name,
List<ValidationFactor> validationFactors) |
String |
TokenKeyGenerator.generateRandomHash(long directoryID,
String name,
List<ValidationFactor> validationFactors)
Creates a String that will be used by a
Token as its Token.randomHash . |
String |
TokenKeyGeneratorImpl.generateRandomHash(long directoryID,
String name,
List<ValidationFactor> validationFactors) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
InvalidTokenExceptionMapper.toResponse(InvalidTokenException exception) |
Modifier and Type | Method and Description |
---|---|
SessionEntity |
TokenController.getSessionFromToken(String tokenKey,
URI baseUri)
Returns the session associated with the Crowd SSO token.
|
SessionEntity |
TokenController.validateToken(String token,
Collection<ValidationFactorEntity> validationFactorEntities,
URI baseUri)
Validates a Crowd SSO token and creates a new token with an updated last accessed date (for the internal token representation).
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
TokenResource.getSession(String token)
Retrieves the token with the authenticated user expanded.
|
javax.ws.rs.core.Response |
TokenResource.validateToken(String token,
ValidationFactorEntityList validationFactors)
Validates the session token.
|
Modifier and Type | Method and Description |
---|---|
SOAPPrincipal |
UserManager.getUserFromToken(String token)
Given an authentication token, retrieves the user associated with it.
|
Modifier and Type | Method and Description |
---|---|
SOAPPrincipal |
CachingUserManager.getUserFromToken(String token)
Note: the lookup is not currently cached - it will always hit the server.
|
Modifier and Type | Method and Description |
---|---|
User |
CrowdClient.findUserFromSSOToken(String token)
Returns the user from the specified user token.
|
void |
CrowdClient.validateSSOAuthentication(String token,
List<ValidationFactor> validationFactors)
Validates the SSO authentication.
|
Session |
CrowdClient.validateSSOAuthenticationAndGetSession(String token,
List<ValidationFactor> validationFactors)
Validates the SSO authentication.
|
Modifier and Type | Method and Description |
---|---|
SOAPPrincipal |
SecurityServerClientImpl.findPrincipalByToken(String key) |
SOAPPrincipal |
SecurityServerClient.findPrincipalByToken(String key)
Finds a principal by token.
|
Modifier and Type | Method and Description |
---|---|
static void |
SoapExceptionTranslator.throwSoapEquivalentCheckedException(InvalidTokenException e) |
Modifier and Type | Method and Description |
---|---|
static void |
SoapExceptionTranslator.throwEquivalentCheckedException(InvalidTokenException e) |
Copyright © 2020 Atlassian. All rights reserved.