Package de.xima.fc.entities.interfaces
Interface IAuthenticator<T extends IFileEntity<? extends de.xima.cmn.dao.interfaces.IEntity<Long>,? extends IFileDataEntity<?>>>
- 
- Type Parameters:
 T- Type of the authenticator entity that implements this interface, i.e. eitherClientAuthenticatororSystemAuthenticator.
- All Superinterfaces:
 IDescriptionProviding,INameProviding,IUUIDEntity
- All Known Implementing Classes:
 AAuthenticator,ClientAuthenticator,SystemAuthenticator
public interface IAuthenticator<T 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 de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION 
- 
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME 
- 
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>getAttributes()StringgetAttributeValue(String key)List<String>getAttributeValueList(String key)Get theListvalue of the attribute with the given keyMap<String,String>getAttributeValueMap(String key)Some keys of thegetAttributes()may be mapped to another key-value map of attributes.EAuthCallbackUrlTypegetCallbackUrlType()UUIDgetCallbackUUID()EAuthConfigStategetConfigState()Map<String,T>getFileMap()StringgetIdentifier()StringgetLoginButtonTitle()EAuthClientTypegetType()voidputAttribute(String key, String value)voidputAttributes(String key, List<String> values)voidputAttributes(String key, Map<String,String> valueMap)TputFile(String key, T file)TremoveFile(String key)voidsetAttributes(Map<String,String> attributes)voidsetFileMap(Map<String,T> fileMap)- 
Methods inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
getBeschreibung, getDescription 
- 
Methods inherited from interface de.xima.fc.entities.interfaces.INameProviding
getName 
- 
Methods inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
getUUID, getUUIDObject, setUUID 
 - 
 
 - 
 
- 
- 
Method Detail
- 
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
Map<String,String> getAttributes()
- Returns:
 - A map of all key-value pairs as configured by the user for this authenticator. Please note that the value may be a JSON object, depending on the key.
 
 
- 
getFileMap
Map<String,T> getFileMap()
- Returns:
 - A map of files the user uploaded when they configured this authenticator, such as SSL certificates or configuration files.
 
 
- 
getAttributeValue
String getAttributeValue(String key)
- Parameters:
 key- Key of an attribute to fetch.- Returns:
 - The value of the attribute with the given key.
 - See Also:
 getAttributes()
 
- 
getAttributeValueMap
Map<String,String> getAttributeValueMap(String key)
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.
 
 
 - 
 
 -