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 Details

    • PublicApiTenantAuthentication

      public PublicApiTenantAuthentication()
  • Method Details

    • 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 interface TenantAuthentication
      Parameters:
      username - String
      networkId - String
      Returns:
      true => authenticated, false => not authenticated