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 TypeMethodDescriptionboolean
authenticateTenant
(String username, String networkId) Authenticate user against network/tenant.void
setTenantAdminService
(TenantAdminService service) boolean
tenantExists
(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:
authenticateTenant
in interfaceTenantAuthentication
- Parameters:
username
- StringnetworkId
- String- Returns:
- true => authenticated, false => not authenticated
-