Class ClientDescriptorHelper
java.lang.Object
de.xima.fc.auth.ClientDescriptorHelper
Helper for retrieving client descriptors for a context.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<IClientDescriptor> Finds all active client descriptors that are configured for the backend in order.static List<IClientDescriptor> Deprecated.static List<IClientDescriptor> Deprecated.UsegetBackendClientDescriptors(IEntityContext)and filter withEAuthenticatorRenderTypeinstead.static Set<IClientDescriptor> static booleanhasAuthenticatorTypeSystemAccess(EAuthClientType type, IUser user, Mandant client) Checks if the given user has system access for configuring the given authenticator type.static booleanhasLicenseAccess(IClientDescriptor clientDescriptor, Mandant client) Checks if the given client descriptor has license access for the given client or for the system if the client isnull.static booleanhasLicenseAccess(IClientDescriptor descriptor, LicenseAccess licenseAccess) static voidinitialize(IClientDescriptor descriptor) static booleanisActive(IEntityContext ec, IClientDescriptor descriptor) Checks if the given client descriptor is active (and valid).static booleanisActiveAndLicensed(IClientDescriptor descriptor, Mandant client) Checks if the given client descriptor is active (and valid).static booleanisAuthClientLicensed(EAuthClientType type, Mandant client) Checks if the given auth client type is licensed for the given client.
-
Method Details
-
getBackendClientDescriptors
Finds all active client descriptors that are configured for the backend in order. Clients with credentials authenticators are at the beginning of the list.- Parameters:
ec- entity context for accessing the database.- Returns:
- ordered list of all active client descriptors configured for the backend.
- Since:
- 8.0.0
-
getBackendInputClientDescriptors
Deprecated.UsegetBackendClientDescriptors(IEntityContext)and filter withEAuthenticatorRenderTypeinstead.Finds all active client descriptors that are configured for the backend and that require direct input of credentials (in order).- Parameters:
ec- entity context for accessing the database.- Returns:
- ordered list of all active client descriptors configured for the backend and require direct input of credentials.
- Since:
- 8.0.0
- See Also:
-
getBackendRedirectClientDescriptors
Deprecated.UsegetBackendClientDescriptors(IEntityContext)and filter withEAuthenticatorRenderTypeinstead.Finds all active client descriptors that are configured for the backend and redirect the user to an external IDP (in order).- Parameters:
ec- entity context for accessing the database.- Returns:
- ordered list of all active client descriptors configured for the backend and redirect the user to an external IDP.
- Since:
- 8.0.0
- See Also:
-
getRestClientDescriptors
-
hasLicenseAccess
- Parameters:
descriptor- to checklicenseAccess- to check- Returns:
- Whether the license has access for the
EAuthClientTypeof the givenIClientDescriptor. - Since:
- 8.0.0
-
hasLicenseAccess
Checks if the given client descriptor has license access for the given client or for the system if the client isnull.- Parameters:
clientDescriptor- to checkclient- the client to check the license for, may benullif the system license should be used.- Returns:
- Whether the license has access for the
EAuthClientTypeof the givenIClientDescriptor. - Since:
- 8.4.1
-
initialize
-
isActive
Checks if the given client descriptor is active (and valid).- Parameters:
descriptor- to check- Returns:
trueif the descriptor is active and valid#
-
isActiveAndLicensed
Checks if the given client descriptor is active (and valid).- Parameters:
descriptor- to checkclient- the client to check the license for, may benullif the system license should be used.- Returns:
trueif the descriptor is active and valid
-
hasAuthenticatorTypeSystemAccess
public static boolean hasAuthenticatorTypeSystemAccess(EAuthClientType type, IUser user, Mandant client) Checks if the given user has system access for configuring the given authenticator type.- Parameters:
type- of the authenticator to check,nullfor no specific type.user- the user to check, may benull.client- the mandant to check, may benull.- Returns:
trueif the user has access or iftypeisnull.
-
isAuthClientLicensed
Checks if the given auth client type is licensed for the given client.- Parameters:
type- of the authenticator to check,nullfor no specific type.client- the client to check, may benull.- Returns:
trueif the type isnullor if the type is licensed for the given client.
-
getBackendClientDescriptors(IEntityContext)and filter withEAuthenticatorRenderTypeinstead.