public class SecurityClientImpl extends java.lang.Object implements SecurityClient
Constructor and Description |
---|
SecurityClientImpl(SearchAPIHttpClient httpClient) |
Modifier and Type | Method and Description |
---|---|
com.exalead.security.sources.common.AuthenticationResult |
authenticate(java.lang.String securitySource,
java.lang.String login,
java.lang.String password,
boolean checkPassword)
Retrieve security tokens for a user on a given security source.
|
com.exalead.security.sources.common.AuthenticationResult |
authenticate(java.lang.String securitySource,
java.lang.String login,
java.lang.String password,
boolean checkPassword,
java.util.List<KeyValue> optParams)
Retrieve security tokens for a user on a given security source.
|
com.exalead.security.sources.common.CustomSecurityCommandAnswer |
customCommand(com.exalead.security.sources.common.CustomSecurityCommand command)
Execute a custom command on a security source that have an IntrospectableComponent annotation
|
static com.exalead.security.sources.common.CustomSecurityCommandAnswer |
execCustomCommand(com.exalead.security.sources.common.CustomSecurityCommand command) |
java.util.List<KeyValue> |
getInfo(java.lang.String securitySource,
java.util.List<KeyValue> kv)
Custom method, its behavior depends of the implementation of the security source.
|
void |
reset(java.lang.String securitySource)
Restore the security source to its initial state.
|
public SecurityClientImpl(SearchAPIHttpClient httpClient)
public com.exalead.security.sources.common.AuthenticationResult authenticate(java.lang.String securitySource, java.lang.String login, java.lang.String password, boolean checkPassword) throws com.exalead.security.sources.common.SecurityException
authenticate
in interface SecurityClient
securitySource
- name of the security source on which the request will be performedlogin
- login of the user to authenticatepassword
- password of the user. Only needed if checkPassword is truecheckPassword
- determines if the password is required for the authenticationcom.exalead.security.sources.common.SecurityException
public com.exalead.security.sources.common.AuthenticationResult authenticate(java.lang.String securitySource, java.lang.String login, java.lang.String password, boolean checkPassword, java.util.List<KeyValue> optParams) throws com.exalead.security.sources.common.SecurityException
authenticate
in interface SecurityClient
securitySource
- name of the security source on which the request will be performedlogin
- login of the user to authenticatepassword
- password of the user. Only needed if checkPassword is truecheckPassword
- determines if the password is required for the authenticationoptParams
- additional parameterscom.exalead.security.sources.common.SecurityException
public java.util.List<KeyValue> getInfo(java.lang.String securitySource, java.util.List<KeyValue> kv) throws com.exalead.security.sources.common.SecurityException
getInfo
in interface SecurityClient
securitySource
- name of the security source on which the request will be performedkv
- list of KeyValue which can contain any informationcom.exalead.security.sources.common.SecurityException
public com.exalead.security.sources.common.CustomSecurityCommandAnswer customCommand(com.exalead.security.sources.common.CustomSecurityCommand command) throws com.exalead.security.sources.common.SecurityException
customCommand
in interface SecurityClient
command
- definition of the command to executecom.exalead.security.sources.common.SecurityException
IntrospectableComponent
public static com.exalead.security.sources.common.CustomSecurityCommandAnswer execCustomCommand(com.exalead.security.sources.common.CustomSecurityCommand command) throws com.exalead.security.sources.common.SecurityException
com.exalead.security.sources.common.SecurityException
public void reset(java.lang.String securitySource) throws com.exalead.security.sources.common.SecurityException
reset
in interface SecurityClient
securitySource
- name of the security source on which the request will be performedcom.exalead.security.sources.common.SecurityException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.