Package de.xima.fc.interfaces.auth
Interface IClientDescriptor
-
- All Superinterfaces:
Serializable
public interface IClientDescriptor extends Serializable
Common interface describing an authentication client. Client descriptors are used for creating security clients used for authentication & authorization. Implementations must implementhashCode()&equals(Object).- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IAuthenticator<?>getAuthenticator()Returns the authenticator entity of the client that provides the properties for the client.default StringgetClientIdentifier()A String identifying this client within its scope.default StringgetClientName()Returns the name of the client which is the callback UUID of theentity authenticatoror the name of thetype authenticator.default StringgetClientScope()A string representing the scope of the client.default StringgetDisplayName(Locale locale)default StringgetI18nAuthBtnTextPlaceholder()Map<String,Serializable>getParameters()@NotNull EAuthClientTypegetType()
-
-
-
Method Detail
-
getType
@NotNull @NotNull EAuthClientType getType()
- Returns:
- the authenticator / client type.
-
getAuthenticator
@Nullable IAuthenticator<?> getAuthenticator()
Returns the authenticator entity of the client that provides the properties for the client. Not all clients need an authenticator to be defined. SeeEAuthClientType.isNeedsAuthenticatorEntity()which clients require an entity authenticator.- Returns:
- the entity authenticator that provides the properties of the client.
-
getParameters
Map<String,Serializable> getParameters()
- Returns:
- Additional parameters that may be required to define a client.
-
getClientIdentifier
default String getClientIdentifier()
A String identifying this client within its scope. Should always be used in conjunction with itsscope!- Returns:
- the identifier of the client.
-
getClientScope
default String getClientScope()
A string representing the scope of the client.ClientAuthenticators have the FC clientUUIDas scope andSystemAuthenticators andtype authenticatorshaveSYSTEMas scope.- Returns:
- scope of the client.
-
getClientName
default String getClientName()
Returns the name of the client which is the callback UUID of theentity authenticatoror the name of thetype authenticator.- Returns:
- the name of the client.
-
getDisplayName
default String getDisplayName(Locale locale)
- Parameters:
locale- to determine the display name for.- Returns:
- The display name of the client for the given locale.
-
getI18nAuthBtnTextPlaceholder
default String getI18nAuthBtnTextPlaceholder()
- Returns:
- the I18N variable placeholder that will be used for the label of the authentication button.
-
-