public abstract class ImportAuthenticationService extends java.lang.Object implements IAuthProvider
Modifier and Type | Class and Description |
---|---|
static class |
ImportAuthenticationService.CacheRegistration |
IAuthProvider.AuthResult, IAuthProvider.IAuthContext
Constructor and Description |
---|
ImportAuthenticationService() |
Modifier and Type | Method and Description |
---|---|
IAuthProvider.AuthResult |
check(IAuthProvider.IAuthContext authContext) |
protected abstract boolean |
checkAuth(Parameters parameters,
java.lang.String userDn,
java.lang.String userPassword)
Check user authentication against directory
|
protected abstract java.lang.String |
getDirectoryKind()
Get directory kind
|
protected abstract Parameters |
getParameters(Domain domain,
java.util.Map<java.lang.String,java.lang.String> domainSettings)
Get domain directory parameters
|
protected abstract java.lang.String |
getPrefix()
Get directory external ID prefix
|
protected abstract java.lang.String |
getUserDnByUserLogin(Parameters parameters,
java.lang.String domainName,
java.lang.String userLogin)
Get user directory DN from user login
|
protected abstract java.lang.String |
getUserDnByUuid(Parameters parameters,
java.lang.String uuid)
Get user directory DN from user external ID
|
protected abstract java.util.Optional<UuidMapper> |
getUuidMapper(java.lang.String externalId)
Get user UuidMapper from user external ID
|
int |
priority() |
public int priority()
priority
in interface IAuthProvider
public IAuthProvider.AuthResult check(IAuthProvider.IAuthContext authContext)
check
in interface IAuthProvider
protected abstract java.lang.String getDirectoryKind()
protected abstract java.lang.String getPrefix()
protected abstract Parameters getParameters(Domain domain, java.util.Map<java.lang.String,java.lang.String> domainSettings)
value
- domainSettings
- protected abstract java.util.Optional<UuidMapper> getUuidMapper(java.lang.String externalId)
externalId
- protected abstract java.lang.String getUserDnByUserLogin(Parameters parameters, java.lang.String domainName, java.lang.String userLogin)
parameters
- domainName
- userLogin
- protected abstract java.lang.String getUserDnByUuid(Parameters parameters, java.lang.String uuid) throws java.lang.Exception
Parameters
- uuid
- java.lang.Exception
protected abstract boolean checkAuth(Parameters parameters, java.lang.String userDn, java.lang.String userPassword)
parameters
- userDn
- userPassword
- Copyright © 2021. All Rights Reserved.