Package org.alfresco.rest.api
Class PublicApiTenantAuthentication
- java.lang.Object
-
- org.alfresco.rest.api.PublicApiTenantAuthentication
-
- All Implemented Interfaces:
TenantAuthentication
public class PublicApiTenantAuthentication extends Object implements TenantAuthentication
Authenticate current user against specified tenant (Enterprise)- Author:
- steveglover
-
-
Constructor Summary
Constructors Constructor Description PublicApiTenantAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticateTenant(String username, String networkId)
Authenticate user against network/tenant.void
setTenantAdminService(TenantAdminService service)
boolean
tenantExists(String tenant)
Determine whether tenant exists and enabled
-
-
-
Method Detail
-
setTenantAdminService
public void setTenantAdminService(TenantAdminService service)
-
tenantExists
public boolean tenantExists(String tenant)
Determine whether tenant exists and enabled- Parameters:
tenant
- String- Returns:
- true => it exists, no it doesn't
-
authenticateTenant
public boolean authenticateTenant(String username, String networkId)
Authenticate user against network/tenant.- Specified by:
authenticateTenant
in interfaceTenantAuthentication
- Parameters:
username
- StringnetworkId
- String- Returns:
- true => authenticated, false => not authenticated
-
-