Class PublicApiTenantAuthentication

    • Constructor Detail

      • PublicApiTenantAuthentication

        public PublicApiTenantAuthentication()
    • Method Detail

      • setTenantAdminService

        public void setTenantAdminService​(org.alfresco.repo.tenant.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