Package org.alfresco.rest.api
Class PublicApiTenantAuthentication
java.lang.Object
org.alfresco.rest.api.PublicApiTenantAuthentication
- All Implemented Interfaces:
TenantAuthentication
Authenticate current user against specified tenant (Enterprise)
- Author:
- steveglover
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticateTenant(String username, String networkId) Authenticate user against network/tenant.voidsetTenantAdminService(TenantAdminService service) booleantenantExists(String tenant) Determine whether tenant exists and enabled
-
Constructor Details
-
PublicApiTenantAuthentication
public PublicApiTenantAuthentication()
-
-
Method Details
-
setTenantAdminService
-
tenantExists
Determine whether tenant exists and enabled- Parameters:
tenant- String- Returns:
- true => it exists, no it doesn't
-
authenticateTenant
Authenticate user against network/tenant.- Specified by:
authenticateTenantin interfaceTenantAuthentication- Parameters:
username- StringnetworkId- String- Returns:
- true => authenticated, false => not authenticated
-