public class SameThreadUserCredentialVerifier extends Object implements UserCredentialVerifier
Constructor and Description |
---|
SameThreadUserCredentialVerifier(AdalAuthenticationContextFactory adalAuthenticationContextFactory,
AzureApiUriResolver endpointDataProvider,
String nativeClientId,
String tenantId) |
Modifier and Type | Method and Description |
---|---|
void |
checkUserCredential(String username,
PasswordCredential userCredential)
Checks whether the user with the provided username can authenticate against Azure AD with provided credential.
|
public SameThreadUserCredentialVerifier(AdalAuthenticationContextFactory adalAuthenticationContextFactory, AzureApiUriResolver endpointDataProvider, String nativeClientId, String tenantId)
public void checkUserCredential(String username, PasswordCredential userCredential) throws InvalidAuthenticationException, OperationFailedException
UserCredentialVerifier
checkUserCredential
in interface UserCredentialVerifier
username
- username to authenticate the useruserCredential
- credential to authenticate the userInvalidAuthenticationException
- if the authentication details provided are not valid, or if the user does not existOperationFailedException
- if the underlying implementation failed to execute the operationCopyright © 2021 Atlassian. All rights reserved.