Package de.xima.fc.auth
Class ClientDescriptorHelper
- java.lang.Object
 - 
- de.xima.fc.auth.ClientDescriptorHelper
 
 
- 
public class ClientDescriptorHelper extends Object
Helper for retrieving client descriptors for a context.- Since:
 - 8.0.0
 - Author:
 - XIMA Media GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static List<IClientDescriptor>getBackendClientDescriptors(IEntityContext ec)Finds all active client descriptors that are configured for the backend in order.static List<IClientDescriptor>getBackendInputClientDescriptors(IEntityContext ec)Deprecated.UsegetBackendClientDescriptors(IEntityContext)and filter withEAuthenticatorRenderTypeinstead.static List<IClientDescriptor>getBackendRedirectClientDescriptors(IEntityContext ec)Deprecated.UsegetBackendClientDescriptors(IEntityContext)and filter withEAuthenticatorRenderTypeinstead.static Set<IClientDescriptor>getRestClientDescriptors(IEntityContext ec)static booleanhasLicenseAccess(IClientDescriptor descriptor, LicenseAccess licenseAccess)static booleanisActive(IClientDescriptor descriptor)Checks if the given client descriptor is active (and valid). 
 - 
 
- 
- 
Method Detail
- 
getBackendClientDescriptors
public static List<IClientDescriptor> getBackendClientDescriptors(IEntityContext ec)
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
public static List<IClientDescriptor> getBackendInputClientDescriptors(IEntityContext ec)
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:
 EAuthenticatorRenderType.isForm()
 
- 
getBackendRedirectClientDescriptors
public static List<IClientDescriptor> getBackendRedirectClientDescriptors(IEntityContext ec)
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:
 EAuthenticatorRenderType.isForm()
 
- 
hasLicenseAccess
public static boolean hasLicenseAccess(IClientDescriptor descriptor, LicenseAccess licenseAccess)
- Parameters:
 descriptor- to checklicenseAccess- to check- Returns:
 - Whether the license has access for the 
EAuthClientTypeof the givenIClientDescriptor. - Since:
 - 8.0.0
 
 
- 
isActive
public static boolean isActive(IClientDescriptor descriptor)
Checks if the given client descriptor is active (and valid).- Parameters:
 descriptor- to check- Returns:
 trueif the descriptor is active and valid
 
- 
getRestClientDescriptors
public static Set<IClientDescriptor> getRestClientDescriptors(IEntityContext ec)
 
 - 
 
 -