Interface IAuthenticator<TFile extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>, ? extends IFileDataEntity<?>>>
- Type Parameters:
TFile- Type of the authenticator file, i.e. eitherClientAuthenticatorFileorSystemAuthenticatorFile.
- All Superinterfaces:
IDescriptionProviding, INameProviding, IUUIDEntity
- All Known Implementing Classes:
AAuthenticator, ClientAuthenticator, SystemAuthenticator
public interface IAuthenticator<TFile extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>, ? extends IFileDataEntity<?>>>
extends INameProviding, IDescriptionProviding, IUUIDEntity
Common interface for user authenticator entities. These entities store the configuration of an authenticator, as
entered by the user.
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTIONFields inherited from interface INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue(String key) getAttributeValue(String key, String defaultValue) Get theListvalue of the attribute with the given keySome keys of thegetAttributes()may be mapped to another key-value map of attributes.getType()voidputAttribute(String key, String value) voidputAttributes(String key, List<String> values) voidputAttributes(String key, Map<String, String> valueMap) removeFile(String key) voidsetAttributes(Map<String, String> attributes) voidsetFileMap(Map<String, TFile> fileMap) Methods inherited from interface IDescriptionProviding
getBeschreibung, getDescriptionMethods inherited from interface INameProviding
getNameMethods inherited from interface IUUIDEntity
getUUID, getUUIDObject, setUUID
-
Method Details
-
getType
EAuthClientType getType()- Returns:
- The authenticator type as selected by the user, such as Google, Facebook or NTLM.
-
getCallbackUUID
UUID getCallbackUUID()- Returns:
- The UUID that uniquely identifies this client. It is added to the callback URL (the URL to which the identity provider redirects upon success or failure).
-
getCallbackUrlType
EAuthCallbackUrlType getCallbackUrlType()- Returns:
- the type of callback URL to be used by this authenticator.
-
getLoginButtonTitle
String getLoginButtonTitle()- Returns:
- The name displayed on the login button that appears on the login page.
-
getConfigState
EAuthConfigState getConfigState()- Returns:
- The current state of this configuration, i.e. whether it still misses some configuration or was configured completely and is ready to be used.
-
getIdentifier
String getIdentifier()- Returns:
- a unique key identifying this authenticator within the system, which is used in
IAuthenticatorConfigs
-
getAttributes
-
getFileMap
-
getAttributeValue
-
getAttributeValue
-
setFileMap
-
removeFile
-
putFile
-
setAttributes
-
getAttributeValueMap
Some keys of thegetAttributes()may be mapped to another key-value map of attributes. These are stored as a stringified JSON object. This is a convenience method that parses the JSON string and return the map. Please note that modifications of the returned map are not stored and do not modify the originalgetAttributes()map.- Parameters:
key- Key of a an attribute to fetch.- Returns:
- The list of key-value pairs for the given key.
-
putAttribute
-
putAttributes
-
putAttributes
-
getAttributeValueList
-